title: Mysql creating double insert when missing html image
body: <p>I have found an error in my code that somehow having html code with a image with no url causes my mysql query to insert twice. Is there any logic to this or is there something else wrong in my code? Please keep in mind hat I am still learning php and mysql.</p>
  
  <p>HTML code</p>
  
  <pre><code>&lt;td width="70"&gt;&lt;img src="" height="70" width="70"&gt;&lt;/td&gt;
  </code></pre>
  
  <p>MYSQL code</p>
  
  <pre><code>mysql_query("INSERT INTO `database`.`user_inventory` (`user_id`, `item_id`, `status`) VALUES (1, 1, 'locked')");
  </code></pre>