title: Verification for delete post function?
body: <p>I have a simple function to delete a row from a mysql database.</p>
  
  <pre><code>function delete_post($post_id){
          global $dbh;
  
          $stmt = $dbh-&gt;prepare("DELETE FROM mjbox_posts WHERE post_id = ?");
          $stmt-&gt;bindValue(1, $post_id, PDO::PARAM_INT);
          $stmt-&gt;execute();
  
      }
  </code></pre>
  
  <p>I was wondering if there was a simple way within the existing function after the deletion attempt to verify if it was successful? (By successful I mean if the row was deleted)</p>