How to use Password() in PHP? Syntax problem?
- From: karlarneg@xxxxxxxxx
- Date: Mon, 8 Sep 2008 07:46:10 -0700 (PDT)
Hello again.
I have tried to use password() in my login-script but it did not work.
My code is:
$sql = "SELECT * FROM users";
$sql .= " WHERE username ='" .
mysql_real_escape_string($_POST['username']) . "' ";
$sql .= " AND pwd = (PASSWORD( ' " . $_POST['pwd'] . " ' )) ";
What is wrong in this?
And how should I write it?
Thanks for all help!
Karl
.
- Follow-Ups:
- Re: How to use Password() in PHP? Syntax problem?
- From: Michael Fesser
- Re: How to use Password() in PHP? Syntax problem?
- From: Jerry Stuckle
- Re: How to use Password() in PHP? Syntax problem?
- From: Sjoerd
- Re: How to use Password() in PHP? Syntax problem?
- Prev by Date: cheap jordan shoes
- Next by Date: Re: How to use Password() in PHP? Syntax problem?
- Previous by thread: cheap jordan shoes
- Next by thread: Re: How to use Password() in PHP? Syntax problem?
- Index(es):