When phpodbc accesses a table in vfp9, it is reminded that it is not a table.

Source: Internet
Author: User
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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.