title: Hiding PHP / MySQL error message
body: <p>I have a website based on <a href="http://www.x-cart.com/" rel="nofollow">X-Cart</a>. It’s working fine. However, when I go to the address (manually accessing the link) <code>www.mysite.com/"Xx&lt;XaXaXXaXaX&gt;xX</code> I get this error message:</p>
  
  <blockquote>
    <p><b>INVALID SQL: </b>1064 : You have an
    error in your SQL syntax; check the manual that corresponds to your
    MySQL server version for the right syntax to use near '&quot;,)<code>'
    LIMIT 1' at line 1&lt;br /&gt;&lt;b&gt;&lt;font color="darkred"&gt;SQL QUERY
    FAILURE:&lt;/font&gt;&lt;/b&gt;SELECT xid FROM xcart_session_history WHERE ip =
    INET_ATON('165.193.42.141') AND host = '&amp;quot;XxxXx';&amp;quot;,)</code>' LIMIT
    1<br /><b>INVALID SQL: </b>1064 : You
    have an error in your SQL syntax; check the manual that corresponds to
    your MySQL server version for the right syntax to use near
    ';&quot;,)<code>', 'e8bc1df13aab2c25c7560512a5029eb1')' at line 1&lt;br
    /&gt;&lt;b&gt;&lt;font color="darkred"&gt;SQL QUERY FAILURE:&lt;/font&gt;&lt;/b&gt;REPLACE INTO
    xcart_session_history (</code>ip<code>,</code>host<code>,</code>xid<code>) VALUES
    (INET_ATON('165.193.42.141'), '&amp;quot;XxxXx';&amp;quot;,)</code>',
    'e8bc1df13aab2c25c7560512a5029eb1')</p>
  </blockquote>
  
  <p>I find this to be a vulnerability on my system because it reveals the table name and other details.</p>
  
  <p>I would like to keep PHP/MYSQL from showing this message on the screen. How can I disable it?</p>