01-15-2008, 05:16 PM
|
#13 (permalink)
|
|
The Addict
Join Date: Dec 2007
Location: morocco
Posts: 221
Thanks: 19
|
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
__________________
|
|
|