Search found 1 match

by rUmX
Tue Jul 05, 2005 6:06 pm
Forum: PHP - Security
Topic: PHP_AUTH_USER / PHP_AUTH_PW and MySQL
Replies: 5
Views: 6405

How about... $query = mysql_query("SELECT * FROM users WHERE pass='$user' AND username='$pass'") or die("Unable to Authenticate at this time."); $result = mysql_fetch_object($query); if (!$result) { // If query returned FALSE, deny access. printf("Please submit a valid usern...