How can you run a search for whether or not a row exists based on an identifier. For example: I need to create a fairly simple system that allows a user to log in and then change options (i.e. update table set XX where user='user'. But- how do I find out if that user ID exists in the table first. The process has to work like this:
User enters Username
PHP checks if Username exists in Database
if yes- check password, then allow in
if no- reject user.
How do you check if a thing exists in a database table?
Thanks!
User enters Username
PHP checks if Username exists in Database
if yes- check password, then allow in
if no- reject user.
How do you check if a thing exists in a database table?
Thanks!