Hi!
I need to know the number of rows I have in a database. I used a piece of code I found on this forum but it doesn't work:
$count=0;
while(odbc_fetch_row($query)){
$count=count+1;
}
echo $count;
I have an error:
Warning: Supplied argument is not a valid ODBC result resource.
If anyone can give me an hint...
T.I.A.
Arabela
I need to know the number of rows I have in a database. I used a piece of code I found on this forum but it doesn't work:
$count=0;
while(odbc_fetch_row($query)){
$count=count+1;
}
echo $count;
I have an error:
Warning: Supplied argument is not a valid ODBC result resource.
If anyone can give me an hint...
T.I.A.
Arabela