Interbase: Number recs
| From: | Todd Cary | Date: | Mon, 02 Oct 2000 17:20:58 +0000 |
| Subject: | Interbase: Number recs | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-3220@lists.php.net to get a copy of this message | ||
Is there an easier way to get the number of records from a SELECT?
+++
$stmt = 'SELECT PH_CD,PH_ROLL,PH_FRAME_LABEL,PH_ID FROM PHOTOS';
$sth = ibase_query($stmt,$dbh);
$ct = 0;
while ($row = ibase_fetch_row($sth)) {
++$ct;
};
$totalrecs = $ct;
+++
What is the method to go to the first record?
Todd
--
Todd Cary
Ariste Software
todd@aristesoftware.com