Re: ibase_fetch_row
| From: | Meir kriheli | Date: | Sat, 04 Nov 2000 14:22:48 +0000 |
| Subject: | Re: ibase_fetch_row | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-4212@lists.php.net to get a copy of this message | ||
Hi Mauricio,
On Friday 03 November 2000 06:06, Mauricio Junqueira wrote:
Did the query return any rows at all ?
You should check the result of ibase_fetch.... something like:
$q = ibase_query($query);
if ($r = ibase_fetch_row($q)) {
do what ever you want
}
else {
nothing found....
}
Can you post your code so we can review it ?
As for Marco, you should use the ibase_fetch_object method. see it in the
manual or check : http://www.php.net/ibase_fetch_object
HTH
--
Meir Kriheli
MKsoft computer systems
"There's someone in my head but it's not me" - Pink Floyd
> Hi,
>
> I'm trying to use ibase_fetch_row to get the result of a previous
> ibase_query. as: $q = ibase_query($query);
> $r = ibase_fetch_row($q);
>
> but when I try to get the results from $r, as in $userid = $r[0], I got a
> null value.
> Everything looks like no value was returned but when I verify my database,
> it shows me that
> there was no problem...
>
> Am I using the right technique with ibase_fetch_row ?
>
> Marco Canini wrote:
> > What's supposed to do ibase_fetch_row?
> >
> > I think it returns an associative array with columns name for keys as
> > others ***_fetch_row functions.
> >
> > Why it isn't so?
> >
> > With array_keys I see that $row = ibase_fetch....
> > is not an associative array.
> >
> > Now, I use a trick by recreating the associative array with the help of
> > ibase_field_info, an undocumented function.
> >
> > Do somebody have the same trouble, and another solution?
> >
> > MC
> >