close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Syntax error on submitting order.

Thread began 6/15/2010 3:05 am by rikaG_510 | Last modified 7/17/2010 6:17 am by rikaG_510 | 3204 views | 18 replies

Eric Mittman

Removing the extra include is fine but you should not set the redirect like you have done. Rather than stop the error from occurring it seems that your redirect is just getting the user to the next page before the code that causes the error runs. You should undo any changes that you made to the redirect.

The error you are getting is a MySQL error and is being reported directly from your db. This tells me that there is a problem with the values you are using on this part of the checkout. What type of checkout did you select and have you made any changes to the page? What about the data types of the information that is being stored? I have seen errors like this when the information is not of the rite type, missing, or referencing non existing values.

To determine what the problem may be you should print out the query so that it can be examined further. I have added some debug code that should print out the query so it can be looked at in more detail. I added a die() statement just after line 292 in the page that you posted. Please run a test with this page and let us know what the result is.


Also, you should update your Universal Email code on the page, currently in the UE code that is on the top of the page you have these lines:

php:
$BurstSize = undefined; 
$BurstTime = undefined; 
$WaitTime = undefined;


You should update these lines so that they are like this instead:

php:
$BurstSize = 200;
$BurstTime = 1; 
$WaitTime = 1;
Attached Files
confirm.php.zip

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...