title: Return the result of Mysqli execute()
body: <p>I have a DELETE query, and I want to return the result of the execution. How can I do it ?</p>
  
  <p>My php code:</p>
  
  <pre><code>Function delete_cat($category){
      $stmt = $mysqli-&gt;prepare("DELETE category, products FROM category INNER JOIN products WHERE category.id = ? AND product_cat = category.category_name ");
      $stmt-&gt;bind_param($category);
      $stmt-&gt;execute();
      $stmt-&gt;close();
  //return should be here
  
  }
  </code></pre>