1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Quick PHP/SQL question

Discussion in 'Software Development' started by KingGiff, Dec 9, 2001.

Thread Status:
Not open for further replies.
  1. KingGiff

    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.
     
  2. Rockn

    Rockn

    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.
     
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 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/61269

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice