|
Posted by nescio on 01/26/06 12:26
problem already solved
--------------- source code -----------------
$result = odbc_do($connection,$query);
echo $aantal = odbc_record_count($result,'');
function odbc_record_count($sql_id, $CurrRow = 1)
{
if ($NumRecords=odbc_num_rows($sql_id)<0) {
$NumRecords = 0;
odbc_fetch_row($sql_id,0);
while (odbc_fetch_row($sql_id))
{
$NumRecords++;
}
odbc_fetch_row($sql_id, $CurrRow);
}
return $NumRecords;
}
--------
http://nl2.php.net/odbc_num_rows ------------------------------------------
Navigation:
[Reply to this message]
|