mysql / php form works on internet but not on intranet
Posted on 2011-09-15
I am attempting to port an established web site with mysql backend to an intranet site. To date I have established the database and web site, with tables and data, on a stand-alone Windows 7/Wamp setup.
The intranet web site functions correctly. I can access the database from phpmyadmin however, when I attempt to use the intranet form (php/html) to access the database I am getting a “Use of undefined constant ID - assumed ‘ID’” error, and the resulting garbage in the form.
This appears to be only on the call from the table to fill the form, not when data is sent to the table.
Internet: MySQL 5.0, PHP 5, Apache on Linux Server
Intranet: MySQL 5.0.7, PHP 5.3.5, Apache 2.2.17, on Windows 7
I have reviewed the php constant reference and I am at a loss to understand why the error is occurring. Any help would be appreciated.