Tech Support Guy banner
Status
Not open for further replies.
1 - 2 of 2 Posts

·
Registered
Joined
·
19 Posts
Discussion Starter · #1 ·
Hey guys,
Just a quick question. I'm coding something in PHP, and want to look up a certain value in a database. Below is the query:

$lookuppass = mysql_query("select pass from auth where name = '$name'");

and, I want $lookuppass to be the value that is queried.. what is the code for this?

Thanks in advance.
 

·
Registered
Joined
·
21,334 Posts
Not sure if PHP uses something similar to ASP as far as SQL queries...do something like SELECT pass FROM auth WHERE $lookuppass = $name

You will also need to do some form validation for invalid passwords and other things.
 
1 - 2 of 2 Posts
Status
Not open for further replies.
Top