RE: [PHP-DB] No tuples available
| From: | USA) | Date: | Mon, 17 Nov 2003 15:57:44 +0000 |
| Subject: | RE: [PHP-DB] No tuples available | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-31589@lists.php.net to get a copy of this message | ||
Great recommendation. The @ should work great. Thanks.
<>< Ryan
-----Original Message-----
From: David T-G [mailto:davidtg-php@justpickone.org]
Sent: Thursday, November 13, 2003 8:03 PM
To: PHP DB list
Cc: Ryan Jameson (USA)
Subject: Re: [PHP-DB] No tuples available
Ryan --
...and then Ryan Jameson (USA) said...
%
% Is there a way to tell PHP to not show just this warning? Maybe there
Have you tried using @ in front of the odbc_fetch_row call? That will
shut it up:
PHP supports one error control operator: the at sign (@). When
prepended to an expression in PHP, any error messages that might be
generated by that expression will be ignored.
I'd bet a twinkie that you get it when you have no more data. You
should implement the PEAR FutureGaze module so that you know to stop one
row earlier ;-)
HTH & HAND
:-D
--
David T-G * There is too much animal courage in
(play) davidtg@justpickone.org * society and not sufficient moral
courage.
(work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and
Health"
http://justpickone.org/davidtg/ Shpx gur
Pbzzhavpngvbaf Qrprapl
Npg!