I am using PHP+FB, there is not a function to count the number of records there are in a select. so, i made this function:
function IBQueryRecordCount($sql) {
$numrecords = 0;
while ($row = ibase_fetch_object($sql)) {
$numrecords++;
}
return $numrecords;
}
//calling the function:
if (IBQueryRecordCount($result) < 1)
{
echo "There isnt msg for you";
}
//it shows a error: 😕
Warning: ibase_fetch_object(): request synchronization error
If you know why it happens, please reply.
thank you all in advance. 🙂