Jump to content

how do i check login then update mysql


pmiller624

Recommended Posts

Always sanitize inputs; never store plain passwords.

$user = mysql_real_escape_string($_GET['user']);
$pw = md5($_GET['pw']); //or your favorite hash

 

Then check that only 1 row exists that has columns matching that username and that password.

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.