query with no results
Everton Luis Berz <[email protected]> Mon, 18 Jul 2005 17:54:41 -0300
| Newsgroups | gmane.text.rlib.user |
|---|---|
| Organization | Faccat |
| Message-ID | <[email protected]> |
Hi,
When I run a report and my query (postgresql) return no rows the
follow messages displayed.
17:30:14 everton@nsa3 [/var/www/html/sa/_relatorios/estudocurriculo] $
php novo.php
row number 0 is out of range 0..-1
row number 0 is out of range 0..-1
row number 0 is out of range 0..-1
** NUTS.. WE CRASHED
Sair (core dumped)
IMHO my report must be displayed and data fields is null, or
rlib functions tell me that my query have no results. (the same when a
query fails)
Example:
<?php
...
$rExecute = rlib_execute($rlib);
if($rExecute === false){
die("no results.");
}
?>
ps: I'm using rlib 1.3.4.
--
Everton Luís Berz
Núcleo de Sistemas Administrativos :: FACCAT - Faculdades de Taquara
+55 51 541 6600 - R.647
ICQ 7807919
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click