Jump to content

Question about login?


3D-kreativ

Recommended Posts

Hi! I Use this code in the login process:

 

$query = "SELECT userName FROM {$tableUser} WHERE userName = '{$user}' AND userPassword = md5('{$password}')";

 

if($res->num_rows === 1) {
$_SESSION['accountUser'] = $row->userName;			
} else {

 

But I find it strange that I can log in with "user" despite that it's "User" in the table? But I can't use "password" it must be "Password". Could someone be kind to explain why and perhaps tell me how to fix this? Thanks!

Link to comment
https://forums.phpfreaks.com/topic/208759-question-about-login/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.