01-15-2008, 03:33 PM
|
#1 (permalink)
|
|
The Addict
Join Date: Dec 2007
Location: morocco
Posts: 221
Thanks: 19
|
plz help me here
hi
im trying to add best rated articles so i made this code
PHP Code:
$web = "SELECT max(rate) as rate from `rate`";
$tuto = mysql_query($web) or die('Database error: ' . mysql_error());
$mas = mysql_fetch_array($tuto);
$round = $mas['tuto_id'];
$web2="select * from tuto where id='$mas[tuto_id]'";
$res2=mysql_query($web2);
while($mas2 = mysql_fetch_array($res2)) {
echo $mas2['title'];
}
well it douesnt give any error just blank
__________________
|
|
|