View Single Post
Old 01-10-2008, 05:21 PM   #1 (permalink)
webtuto
The Addict
 
webtuto's Avatar
 
Join Date: Dec 2007
Location: morocco
Posts: 221
Thanks: 19
webtuto is on a distinguished road
Default 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.
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