Quote:
Originally Posted by popsantiago hi,
Like that it's ok : Code: {php}
$link = new Link;
$randomQ = mysql_query("select * from " . table_links . " where link_status='queued' order by RAND() ASC limit 0,1");
while($random = mysql_fetch_array($randomQ))
{
$link_title = $random[link_title];
$link_url = $random[link_url];
$link_id = $random[link_id];
$link->id=$link_id;
$link->read();
$link->print_summary('summary');
}
{/php}
pop |
Can you tell me what the use of while loop here ?and whats the use of linktitle and link url ?