close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Unknown Column on Confirm.php, fixes elsewhere in forum aren't working

Thread began 11/09/2011 7:59 am by Justin@AdventDesign | Last modified 11/09/2011 12:03 pm by Justin@AdventDesign | 1223 views | 5 replies

Justin@AdventDesign

Unknown Column on Confirm.php, fixes elsewhere in forum aren't working

When attempting to checkout from the confirm.php page, I get the following error:

Unknown column 'M00122' in 'field list'

The order is inserted into the 'orders' table properly, but nothing shows up in the orderdetails table.

I've found similar events in numerous posts throughout this forum.

'M00122' is the part number of the product in the cart, so first I changed the DetailProductID in the orderdetails table to varchar rather than INT, which appears to be the fix for most. Still get the same error after this change. Dumped cache and sessions and tried a new browser, same error.

As suggested in another thread, on the confirm.php code I changed:

$WA_editCmd = mysql_query($WA_sql, $WA_connection) or die(mysql_error());

to:

$WA_editCmd = mysql_query($WA_sql, $WA_connection) or die(mysql_error()."<br />".$WA_sql);

Then, rerunning the pages, I get:

Notice: Undefined variable: WA_sql in /Applications/XAMPP/xamppfiles/htdocs/beta/00_Aveo/confirm.php on line 292

Notice: Undefined variable: WA_sql in /Applications/XAMPP/xamppfiles/htdocs/beta/00_Aveo/confirm.php on line 292
Query was empty

I also tried modifying the ecart Object column for ID from number to text, thinking maybe that was the problem. Didn't work so I changed it back.

You can access and test the pages yourself at products/

I've attached the confirm.php page if that helps.

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