Re: numrows

From: Date: Wed, 21 Feb 2001 20:08:00 +0000
Subject: Re: numrows
References: 1  Groups: php.pear 
Request: Send a blank email to php-pear+get-1409@lists.php.net to get a copy of this message
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" <toni@infurma.es> wrote in message news:20010219181452.A2238@infurma.es... > Hello, > > How can I do a numrows with DB PEAR ? > > Thanks > -- > Antonio Mármol Albert ( toni@infurma.es ) > 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: php-pear-unsubscribe@lists.php.net from the > mail address you subscribed with. >

« previous php.pear (#1409) next »