I have this query to use in PHP:
mysql_query(\"select count(*) from registeredUsers where email=\".$_SESSION[\"username\"]);
When I use e
The count query will always return a value, which is 0
if no records are returned, or an integer above 0
if records match it.
It should at least be printing out 0
, the query you posted means:
Get the number of records where the email address is equal to the session username
This might not make sense, do you mean to do where username = ".$_SESSION["username"]
or something similar?