Re: query with no results
Bob Doan <[email protected]> Tue, 19 Jul 2005 10:34:48 -0400
| Newsgroups | gmane.text.rlib.user |
|---|---|
| Message-ID | <[email protected]> |
It's not supposed to crash in either case
Send in the stack trace
On Mon, 2005-07-18 at 17:54 -0300, Everton Luis Berz wrote:
> 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.
-------------------------------------------------------
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_id=7477&alloc_id=16492&op=click