[Vtigercrm-developers] Catch $adb->pquery error?

Alan Lord (News) alanslists at gmail.com
Sat Sep 7 14:16:57 UTC 2013


On 07/09/13 15:06, Joe Bordes wrote:
> Have you tried something like:
>
> $recordSet  = $adb->query($sql);
>
> if (!$recordSet)
>           print $adb->ErrorMsg();
> else

Ahh - so if I understand you, if the query fails the result is *always* 
null?

I was thinking the $recordSet itself in your example would contain the 
error.

If that's the case it's easy - I can use a do-while & check for null.

Cheers

Al




-- 
Libertus Solutions
http://www.libertus.co.uk



More information about the vtigercrm-developers mailing list