01-10-2008, 05:21 PM
|
#1 (permalink)
|
|
The Addict
Join Date: Dec 2007
Location: morocco
Posts: 221
Thanks: 19
|
a question , alittle of math here
hi
whats the error here =>
PHP Code:
$web="SELECT SUM(`rate`) / COUNT(`rate`) from `rate`"; $tuto=mysql_query($web) or die('Database error: ' . mysql_error()); $mas=mysql_fetch_array($tuto); echo"The Rating of this tutorial is : ".$mas['rate']."<br><br>";
it douesnt show the result :s
__________________
Last edited by webtuto : 01-10-2008 at 06:28 PM.
|
|
|