close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

mysql error message on confirm.php

Thread began 8/13/2010 5:37 am by lightwalkercreations361768 | Last modified 8/14/2010 7:16 am by lightwalkercreations361768 | 720 views | 2 replies |

lightwalkercreations361768Beta Tester

mysql error message on confirm.php

Dear Webassist,

I keep getting an error trying to assign the transaction id and correlation id to the DB. I have narrowed it down to one or both because when I remove them then the page processes with no trouble. the mysql error is

"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 '[OrderTransaction ID],OrderReceiptID,OrderVisitorID,OrderShipping,OrderTax,Order' at line 1"

I am not sure how to fix this. I have included the confirm.php page.

I am also having a problem were my ecart object is set to UKP but the transactions for website payment pro as come through as USD. I read a few other Post and found this

"and change it to:
<input type="hidden" name="currency_code" id="currency_code" value="GBP" />"

to change the hidden field called "currency_code" on the confirm.php. I can not find that hidden field and wondering how I can change this - I am using ecart 5 if this makes a difference.

Many thanks as always for you help

Attached Files
confirm.php.zip
Sign in to reply to this post

Eric Mittman

If you are sure that the columns are properly configured then there might be an issue with the values that are going into them. The best way to help debug what is wrong with the query is to get the full query text and check it for problems, then we can make any updates that are needed in the store order summary server behavior.

To get the full text of the query you should add in this line of code just after what is currently on lines 460 and 470, add a new line after the one that starts with "$WA_Sql = " and put this code on it:

php:
die($WA_Sql);



After you add in this code run a test and it should print out the query that is used. If you can't identify any issues with it post back with what you get and we will check it out.

For the currency code you should check lines 238-239

php:
$PP_DirectPayment_required[0][$nextIndex] = "Currency";

$PP_DirectPayment_required[1][$nextIndex] = "USD";



You need to update the USD to GBP.

Sign in to reply to this post

lightwalkercreations361768Beta Tester

Thank you so much Eric,

I have to apologize, I made a mistake in the DB were I had a space in the row name causing the SQL error. having looked at something for so long I forget to always look at the simplest explanation.

Thank you for the help with how to change the currency. Everything is working well.

Best Wishes and again thank you for your support.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...