title: Writing PDO DELETE query values
body: <p>I was wondering if we can still use <strong>values</strong> from a freshly <code>DELETE</code> <strong>row</strong> as a <code>SELECT</code> or do we really need to <code>SELECT</code> it before ?</p>
  
  <p><strong>Example :</strong><br>
  Transform this</p>
  
  <pre><code>$foo = $db-&gt;prepare("SELECT * FROM table WHERE id= :id");
  $foo-&gt;execute(array(
      "id" =&gt; $table_id
  ));
  $foo = $foo-&gt;fetch(PDO::FETCH_ASSOC);
  
  $delete_foo = $bdd-&gt;prepare("DELETE FROM table WHERE id = :id");
  $delete_foo-&gt;execute(array(
      "id" =&gt; $table_id
  ));
  echo $foo['name'] . " has been deleted !";
  </code></pre>
  
  <p>Into this :</p>
  
  <pre><code>$delete_foo = $bdd-&gt;prepare("DELETE FROM table WHERE id = :id");
  $delete_foo-&gt;execute(array(
      "id" =&gt; $table_id
  ));
  $delete_foo = $delete_foo-&gt;fetch(PDO::FETCH_ASSOC);
  echo $delete_foo['name'] . " has been deleted !";
  </code></pre>
  
  <p>It would be easier. I was just wondering, I use the 1st method but it just went in mind and I don't find answers.</p>