Quick PHP/SQL question

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

KingGiff

Thread Starter
Joined
Jul 4, 2001
Messages
19
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.
 
Joined
Jul 29, 2001
Messages
21,334
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.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top