PHP ODBC accesses VFP9 table when reminder is not a table

Source: Internet
Author: User
PHP ODBC is not a table when accessing VFP9 tables
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 manipulate the VFP6 everything is ok but the VFP9 table is not a table. Because VFP9 's table has more than one field that is automatically incremental, it can be accessed by removing the field.
What should I do if I want to access a table with an AutoIncrement field?
Someone on the web said that using OLE DB I also downloaded olddb VFP, but did not know how to use PHP ODBC VFP9

Share to:


------Solution--------------------
The self-increment field is only valid in the library (DBC)
So your ODBC source should be the library (DBC) instead of the 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.