Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/damm/public_html/cost.php on line 9
please guys do something
Code:
<?php $con = mysql_connect("localhost","username","password"); if (!$con) { die('error'); } $sql = mysql_query("SELECT SUM(`at`) FROM `User`"); $r = mysql_fetch_array($sql); $total=$r[0]; echo $total; ?>
Comment