When phpodbc accesses a vfp9 table, it is prompted that not one table uses & nbsp; odbc & nbsp; to access the vfP table & nbsp; the code is as follows & lt ;? Header ("Content-Type: & nbsp; text/html; & nbsp; charset = gb2 php odbc prompt when accessing the vfp9 table
The table code for accessing vfP using odbc is as follows:
Header ("Content-Type: text/html; charset = gb2312 ");
$ Myconn = odbc_connect ("vfp1 ","","");
$ StrSql = "select * from 'xxku1 '";
$ Result = odbc_do ($ myconn, $ strSql );
?>
{
?>
}
Odbc_close ($ myconn );
?>
The table used to operate vfp6 is normal, but the table changed to vfp9 prompts that it is not a table. because a field in the vfp9 table is automatically incremental, you can also remove this field.
What should I do if I want to access a table with automatic incremental fields,
I also downloaded OLDdb vfp using ole db, but I don't know how to use PHP odbc vfp9:
------ Solution --------------------
The auto-increment field is only valid in the database (dbc ).
Therefore, your odbc source should be a database (dbc) instead of a free table (dbf)