Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

order_editor for 2.3 Problem


JoshBowe

Recommended Posts

Hi, I'm having a bit of a problem with order_editor for osCommerce 2.3. The contribution itself works great, however when a customer enters an address with an apostrophe in it, for example "Val D'Oise" I get the following mySql error:

 

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 'Oise' OR zone_code = 'Val D'Oise')' at line 1
select zone_id from zones where zone_country_id = '73' and (zone_name = 'Val D'Oise' OR zone_code = 'Val D'Oise')
[TEP STOP]

 

I'm not so hot on PHP, but is there any way I can stop names/addresses with an apostrophe in them causing this error?

 

Thanks. :)

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...