Hello,
I have a master-detail setup where the master table lists suppliers and two detail tables hold the delivery dockets and purchase orders, each with their own detail table for their line items.
The master-detail for Suppliers-Purchase Orders works fine but when I am in the list view of the Suppliers and click on the Delivery Docket link I get the following error message.
=======================================================
Technical information
Error type: 256
Error description: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where (Supplier_ID='') and (Supplier_ID='123')' at line 1
URL: test.company.com.au/Suppliers/delivery_docket_header_list.php?mastertable=suppliers&masterkey1=123
Error file: D:\iNet\Test\Suppliers\include\dbconnection.php
Error line: 34
SQL query: select count(*) where (Supplier_ID='') and (Supplier_ID='123')
Solution: This is a general error. It occurs when there is an error in event code or in SQL.
========================================================
I have rebuilt all pages and deleted all data from the Delivery Docket table and its detail table but still get the same error.
From the error message the SQL statement seems to be missing the table name for some reason.
I am using PHPRunner 5.0 build 437
Thank you
Rod Johnson