View Single Post
  #9 (permalink)  
Old 05-02-2008, 10:00 PM
ashishhbti's Avatar
ashishhbti ashishhbti is offline
Casual Pligger
 
Join Date: Jul 2007
Location: India
Posts: 38
Thanks: 0
Thanked 9 Times in 5 Posts
Quote:
Originally Posted by popsantiago View Post
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 ?
Reply With Quote