Forum Moderators: open

Message Too Old, No Replies

mysql sytax error.Help please

         

tiger5226

11:26 pm on Feb 24, 2008 (gmt 0)

10+ Year Member



I am getting this error message when people try to purchase stuff from my store at the end on the thanks page. The information is not coming through. <snip>

I am getting this on the thanks page everything else is working fine.

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 'id %orderid% from %orderdate% has been updated from %oldstatus% to %newstatus% o' at line 1
Thank you for your purchase !

We will be in contact as soon as possible.

Cannot find customer details for order id: 549
--------------------------
Product ID: CAS-E-6099
Product Name: Briza 8-Bay ATX Mid Tower Case w/400W Power Supply (Black)
Quantity: 1
Unit Price: $65.10
--------------------------
Product ID: CAS-E-6099
Product Name: Briza 8-Bay ATX Mid Tower Case w/400W Power Supply (Black)
Quantity: 1
Unit Price: $65.10
--------------------------
Product ID: CBL-RED-18-SATA
Product Name: 18" Serial ATA (SATA) Drive Cable - Red
Quantity: 1
Unit Price: $3.16
--------------------------
Product ID: CAS-E-6099
Product Name: Briza 8-Bay ATX Mid Tower Case w/400W Power Supply (Black)
Quantity: 1
Unit Price: $65.10
--------------------------
Order Total : $0.00
Shipping and Handling : $0.00
Grand Total : $0.00

[edited by: volatilegx at 11:09 pm (utc) on Feb. 25, 2008]
[edit reason] please no commercial messages [/edit]

phranque

3:05 am on Feb 25, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



you have the following illegal syntax in your SQL query:
id %orderid% from %orderdate% has been updated from %oldstatus% to %newstatus% o

it looks like your query contains a status message rather than a query...