Jump to content

SQL 1064 Error in IE


thirtyottsixx

Recommended Posts

Hello,

I was working on the layout of my viewProd.tpl file when I started getting a MySQL error in IE:

MySQL Error Occured

1064: 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 'Select 1' at line 1

QUERY = SELECT CubeCart_options_bot.option_id, CubeCart_options_bot.value_id, option_price, option_symbol, assign_id FROM `CubeCart_options_bot` INNER JOIN `CubeCart_options_mid` ON CubeCart_options_mid.value_id = CubeCart_options_bot.value_id INNER JOIN `CubeCart_options_top` ON CubeCart_options_bot.option_id = CubeCart_options_top.option_id WHERE assign_id = Select 1

The site is still working fine in Firefox, Opera, Safari and can be viewed at www.warriorstradingpost.com

I immediately restored a working version of my viewProd.tpl file - no luck. I also emptied my admin sessions table and product options tables with no luck. :lol:

Any help is appreciated.

Link to comment
Share on other sites

I'm guessing you have given a value to a drop down box option of "Select 1". The option values, as opposed to the option text caption, need to be values found in the database. For the table.column "options_bot.assign_id", that's an integer value.

So, in your drop down select tag, make sure you have the text caption that displays in the list ("Select 1") outside the options tag. The value associated with that option is inside the tag.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...