note 19245 deleted from function.ibase-fetch-row by didou
| From: | didou@php.net | Date: | Sun, 27 Jul 2003 18:49:32 +0000 |
| Subject: | note 19245 deleted from function.ibase-fetch-row by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-52783@lists.php.net to get a copy of this message | ||
Note Submitter: kovashATmalungo.com
----
This function may help in loops or whenever you need to know how many records are there in you SQL
statement.
$sql = "SELECT * FROM EMPRESA" ";
$query = ibase_query($sql);
function ibase_num_rows($query) {
$i = 0;
while (ibase_fetch_row($query)) {
$i++;
}
return $i;
}