title: Can MySQL commit fail if individual queries works?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3960189/can-a-commit-statement-in-sql-ever-fail-how">Can a COMMIT statement (in SQL) ever fail? How?</a>  </p>
  </blockquote>
  
  
  
  <p>Can a commit query fail if all queries within the transaction returned a working result?</p>
  
  <p>I have a <code>$ok = mysql_query($query);</code> on all queries inside the transaction, but I do not have a <code>$ok = mysql_query("COMMIT");</code> since I thought that if the individual queries work.</p>
  
  <p>Using innodb.</p>