title: Delete Query returning Value even when there is no record in database
body: <pre><code>&lt;?php
              include "conn.php";
              include "session.php";
              $name_enterd=$_GET['Name'];
              $sql = "DELETE FROM myDB.Mynew WHERE firstname='$name_enterd' OR lastname='$name_enterd'";
              echo "&lt;br&gt;";
              $result=$conn-&gt;query($sql);
              if($result==1)
              {
                  echo "&lt;br&gt; Data deleted successfully";
              }
              else
              {
                  echo "No Data Found&lt;br&gt;";
              }
          ?&gt;
  </code></pre>
  
  <p>when I run this code 1st time it works properly by deleting the data. But when i run it again it still gives me the same answer" Data Deleted Successfully" even there is no data with that value exists.
  i.e $result still gets value1.</p>