Hi guys, I am storing a bunch of user ID's inside of a mySQL database along with other data relative to each uid, but now I would like to implement a check in the beginning of the program which basically goes like so, if the user already exists, get the specified fields for that specific user and assign them to variables, else return null.
$query = mySQL query;
if ($query){
do this...
}else{
do that...
};
I am assuming it would look something like that?
I am a little unsure of my syntax and don't know very much about mySQL which is why I am asking for some help, thanx in advance!