hey coders am having a bit a problem with my up coming toplist script i am put a text on the index that shows the amount of site registered this is the code
$sites = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM nt4_toplist"));
echo"<b>$sites[0]</b> Registered Sites!<br/>";
but its not working and am getting this error
Warning: mysql_query() [function.mysql-query]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/chill/public_html/gb1/index.php on line 13
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/chill/public_html/gb1/index.php on line 13
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/chill/public_html/gb1/index.php on line 13
Registered Sites!
can someone tell me whats the problem?
$sites = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM nt4_toplist"));
echo"<b>$sites[0]</b> Registered Sites!<br/>";
but its not working and am getting this error
Warning: mysql_query() [function.mysql-query]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/chill/public_html/gb1/index.php on line 13
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/chill/public_html/gb1/index.php on line 13
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/chill/public_html/gb1/index.php on line 13
Registered Sites!
can someone tell me whats the problem?
Comment