Hello!
How do I count the fieds where approve=0 and then echo the number out please?
Now I get this annoying error msg:
Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'COUNT FROM reviews WHERE approve=0' at line 1 in query: COUNT FROM reviews WHERE approve=0
<?php
$Link = mysql_connect("localhost", "user_user", "password");
mysql_select_db("user_tonydb", $Link);
$Query = "COUNT * FROM reviews WHERE approve=0" or die (mysql_error());
$Result = mysql_query($Query) or die("Error: ".mysql_error()." in query: ".$Query);
$row=mysql_fetch_array($Result);
?>
You have X new reviews to have a look at.