Hello,
I am setting a cookie something like:
$_COOKIE['test'] = SHA1('124'.'mysalt');
Now 124 is my id which i want. So in my mysql table, I am trying to run a query like:
$sql = ("SELECT * FROM users WHERE SHA1(`id`) = '".mysql_real_escape_string($_COOKIE['test'])."'");
Problem is how to do I add the "mysalt" to the sql query? Because else I want get the correct id.
Thank you for your time.