Page 1 of 1

Username and password

Posted: Sat Jun 19, 2010 5:53 am
by Zaroth
I created a table that stores "username" and "password". Table that stores games to sell. I'm using window form text boxxes to input "username" "password" "game_name" "game_price" "game_description".

Now I need to figure out the proper syntax to match a string stored in the users table to match the input of the textbox.. Something like this?

$query = "Select * from user where user_name = input_user

if $query finds user..
Insert something
else
login failed

Re: Username and password

Posted: Sat Jun 19, 2010 8:50 am
by Phoenixheart
mysql_num_rows()