View Single Post
Old 01-15-2008, 05:16 PM   #13 (permalink)
webtuto
The Addict
 
webtuto's Avatar
 
Join Date: Dec 2007
Location: morocco
Posts: 221
Thanks: 19
webtuto is on a distinguished road
Default

i did it here is the code

PHP Code:
$web "SELECT tuto_id,rate FROM rate ORDER BY rate DESC LIMIT 2";
    
$tuto mysql_query($web) or die('Database error: ' mysql_error());
    
$mas mysql_fetch_array($tuto)or die(mysql_error());
     
$round $mas['tuto_id'];
  
$web2="select * from tuto where id='$mas[tuto_id]'";
  
$res2=mysql_query($web2);
while(
$mas2 mysql_fetch_array($res2)){ 
   echo 
"<tr><td>Most 4 best rated tutorials</tr><tr><td>".$mas2['title']."</tr>";
   } 
but still give just 1 result :s
__________________
Send a message via MSN to webtuto Send a message via Yahoo to webtuto Send a message via Skype™ to webtuto
webtuto is offline  
Reply With Quote