osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

SQL syntax error

This is a discussion on SQL syntax error within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; After being hacked, I and getting site back running, I am now recieving the following error: 1064 - You have ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Installation Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 09-14-2004, 04:50 PM
Lurker
 
Join Date: Jan 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
barnkin
Default SQL syntax error

After being hacked, I and getting site back running, I am now recieving the following 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 'MAX_DISPLAY_ALSO_PURCHASED' at line 1

select distinct p.products_id, p.products_image, pd.products_name, p.products_tax_class_id, products_price from products_xsell xp, products p, products_description pd where xp.products_id = '231' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit MAX_DISPLAY_ALSO_PURCHASED

[TEP STOP]

This happens when I click on the product images which also quit resizing.

You can see what I mean at http://www.raysworldofwonders.com

Thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 09-14-2004, 10:13 PM
Member
 
Join Date: Aug 2004
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
wenzlerpaul
Default

This is an error on the xsell module you just added, try to restore the original file if you still have them and work out the xsell plugin again, I cannot see your code so I do not know where to start, however, you may want to check again the xsell setup you did if you do not want to restart the process, also, try to see if you did dump the right sql info provided on the xsell plugin.

if it does not work, please explain what "hack" you did so we could determine why it is causing you that error.

Paul
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
1064 - You have an error in your SQL syntax. jamie74 osCommerce 2.2 Modification Help 0 10-20-2004 12:45 PM
1064 - You have an error in your SQL syntax. j0ly osCommerce 2.2 Installation Help 1 08-24-2004 04:13 PM
bts 1.2a SQL syntax error nfmg osCMax v1.7 Discussion 1 08-21-2004 02:43 PM
1064 - You have an error in your SQL syntax Anonymous osCMax v1.7 Installation 3 05-10-2004 11:48 AM
SQL syntax error americamba osCommerce 2.2 Installation Help 1 01-05-2004 09:34 AM


All times are GMT -8. The time now is 06:30 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax