I have written code in php in order to get id from url and check whether it exists or not in mysql database. I have an existing value in the database but still getting a problem saying value is not found. Please anyone have a solution?
Here is my code:
<?php
require 'Common.php';
$Email=$_GET['id'];
$result = mysql_query("SELECT email FROM cdcol.employees WHERE email='$Email'");
if(mysql_num_rows($result) >0)
{
echo 'Email Found';
}
else
{
echo 'Email NOT Found';
}
?>