Re: [PHP-PEAR] numrows
[email protected] ("Mark")
| Newsgroups | php.pear |
|---|---|
| Message-ID | <[email protected]> |
Ok, I guess I've become spoiled using mysql so much but this app has to be
done using Oracle and as far as I know Oracle doesn't have a numrows, I need
to check a result set and make sure it is >1, so I know the user exist in
the db.
This is how I want to do it, but I can 't do it this way....
if(@$db->numrows($userRecord)< 1)
....error
}else{
..... continue doing what we want to do
}
I thought about doing it this way:
while (! DB::isError($resultRow =
$userRecord->fetchRow(DB_FETCHMODE_ASSOC)))
{
if (!$resultRow["username"] )
{ .....
will this work?
any suggestions?
-Mark
"Antonio Mármol Albert" <[email protected]> wrote in message
news:[email protected]...
> Hello,
>
> How can I do a numrows with DB PEAR ?
>
> Thanks
> --
> Antonio Mármol Albert ( [email protected] )
> http://www.infurma.es
>
> --
> PHP Extension and Add-on Repository (PEAR) mailing list.
> Documentation can be found at http://pear.php.net/doc/pear.html
> To unsubscribe, e-mail: [email protected] from the
> mail address you subscribed with.
>