has something changed for this as im just coding a new site and im tryning to use the count to count rows to see if a user exist. but it keeps giving me an error, its like i put it back to front.
if i put test as a username in the login box this is the error i get Unknown column 'test' in 'where clause'
this is the code iv tried
$count_users=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM members WHERE username=".$userid."")) or die(mysql_error());
$check_pass=mysql_num_rows(mysql_query("SELECT username,password,COUNT(*) FROM members WHERE username=".$userid." AND password=".$protect."")) or die(mysql_error());
any help as usual always appreciated, if you got any material on this would be even better.
Want something coded email me at sales@webnwaphost.com for a prices.