Hi! to all,
I have some problems using php with ODBC and access database
i want ot get number of row in a table. code is like
<?php
$link=odbc_conn ect("myDSN","", "") or die ("Failed");
$result=odbc_ex ec($link,"SELEC T * FROM tablename");
echo odbc_num_rows($ result);
?>
the result of this page is -1
what cursor type should i use to get number of rows. plz give me an example.
thanks
I have some problems using php with ODBC and access database
i want ot get number of row in a table. code is like
<?php
$link=odbc_conn ect("myDSN","", "") or die ("Failed");
$result=odbc_ex ec($link,"SELEC T * FROM tablename");
echo odbc_num_rows($ result);
?>
the result of this page is -1
what cursor type should i use to get number of rows. plz give me an example.
thanks
Comment