title: Get url id in php and check whether it exist or not in database
body: <p>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?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;?php
        require 'Common.php';
        $Email=$_GET['id'];
        $result = mysql_query("SELECT email FROM cdcol.employees WHERE email='$Email'");
        if(mysql_num_rows($result) &gt;0)
  
          {
              echo 'Email Found'; 
          }
      else
          {
          echo 'Email NOT Found';
          }
  ?&gt;
  </code></pre>