Consider this:
$email = 'c5dfd29d956b52c1ffa00ce4a06abad2'; // From the query string (MD5)
$result = mysql_query('SELECT * FROM ' . $table
. ' WHERE MD5(email_address) = ' . $email);
$row = mysql_fetch_array($result);
echo $row['email_address'];
I want to get the value from the 'email_column' if the hashed emails are the same (From the database and from the query string using MD5). What is the correct way of doing this?