title: Mysqli DELETE QUERY not working in PHP Script
body: <p>Im using the following code to remove an entry from a table what i want to do is to check if any value was deleted from the table.If one value is deleted,the script should print success else false.This is what i have achieved till now.Please help</p>
  
  <pre><code>&lt;?PHP
      $mysqli = new mysqli("SQLHOST.COM","CLIENT","PASSWORD", "DNAME", 1234);
  
      if ($mysqli-&gt;connect_errno) {
          printf("Connect failed: %s\n", $mysqli-&gt;connect_error);
          exit();
      }
      else
      {
  
      printf("cONN Sucees");
  
  
      if ($result = $mysqli-&gt;query("DELETE FROM ktable WHERE code='value'")) {
          printf("Select returned %d rows.\n", $result-&gt;num_rows);
  
  
       printf($result-&gt;num_rows);
          $result-&gt;close();
      }
  
      }
      ?&gt;
  </code></pre>