[Vtigercrm-developers] Catch $adb->pquery error?
Joe Bordes
joe at tsolucio.com
Sat Sep 7 14:25:28 UTC 2013
I think it is FALSE, not null
El 07/09/13 16:16, Alan Lord (News) escribió:
> 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
>
>
>
>
More information about the vtigercrm-developers
mailing list