Can I use an exception with a database query?
<p>Is it possible to use an exception at the end of a mysql query instead of die()? I'd like to throw an exception and log it instead of killing the script.</p>

<p>Would it be done like:</p>

<pre><code>mysql_query(...) or throw new exception()??
</code></pre>
