php-db | 2001011
Date: 01/12/01
- Next message: Victor Foitzik: "Re: [PHP-DB] Problem with oci8"
- Previous message: Jan Fedak: "[PHP-DB] sybase_get_last_message() patch for Sybase CT"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Is the following statement the best way to handle a username/password
validation
$username and $password are form fields
$result="";
$result= mysql_query (" Select password from ACCT_TBLE where (ACCT_NUM =
'$username' and PASSWORD='$password')");
Now my question is will result be equal to "" if the query statement doesn't
return any data?
thanks
randy
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Victor Foitzik: "Re: [PHP-DB] Problem with oci8"
- Previous message: Jan Fedak: "[PHP-DB] sybase_get_last_message() patch for Sybase CT"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

