<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Have you tried something like:<br>
      <br>
      <pre>$<span style="color:#660000">recordSet</span> = $adb<span style="color:#660000"></span>->query($sql);

if (!$<span style="color:#660000">recordSet</span>) 
<span style="mso-tab-count:1">         </span>print $adb<span style="color:#660000"></span>->ErrorMsg();
else
....
</pre>
      <br>
      <br>
      <a class="moz-txt-link-freetext" href="http://phplens.com/lens/adodb/docs-adodb.htm">http://phplens.com/lens/adodb/docs-adodb.htm</a><br>
      <br>
      <br>
      <br>
      <br>
      El 07/09/13 13:20, Alan Lord (News) escribió:<br>
    </div>
    <blockquote cite="mid:l0f25k$4qc$1@ger.gmane.org" type="cite">Hi
      probably a daft question but I couldn't find any examples in the
      code (or perhaps I wasn't looking properly)...
      <br>
      <br>
      I've an Event Handler function that creates and adds a UUID to a
      vtlib module entity table. I've set a UNIQUE constraint on the
      column as it is essential all the UUIDs are unique.
      <br>
      <br>
      I know it's quite unlikely, but I want to check the result of the
      $adb->pquery Update table query to see if the query failed
      because it wasn't unique and repeat until it works...
      <br>
      <br>
      Anyone got an example of how to check if the $result is an error
      object?
      <br>
      <br>
      Cheers
      <br>
      <br>
      Al
      <br>
      <br>
      <br>
    </blockquote>
    <br>
  </body>
</html>