osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

MySQL problem

This is a discussion on MySQL problem within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I have a problem in admin and i think it has to do with MySQL. For example when i try ...


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

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 11-04-2004, 04:02 AM
Member
 
Join Date: Sep 2004
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
calle
Default MySQL problem

I have a problem in admin and i think it has to do with MySQL. For example when i try to look at "products reviews" I get this message:


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 '-20, 20' at line 1

select reviews_id, products_id, date_added, last_modified, reviews_rating from reviews order by date_added DESC limit -20, 20


What should I do? Re-install MySQL? Please help....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 11-04-2004, 08:54 PM
red_fraggle's Avatar
Active Member
 
Join Date: Feb 2004
Location: wilmington, NC
Posts: 319
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
red_fraggle
Default

YIKES !!! DO NOT RE-INSTALL MYSQL

It's a syntax error, meaning the query is incorrect. I would have to look at the code to tell you whats wrong though.
__________________
Clifton Murphy CEO/CTO
Hyperactive Inc.
osCommerce hosting, OSCMAX hosting, osCommerce modification, and OSCMAX modification specialists!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 11-07-2004, 06:24 AM
Lurker
 
Join Date: Sep 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sargenle
Default 1064 Error

Quote:
Originally Posted by red_fraggle
YIKES !!! DO NOT RE-INSTALL MYSQL

It's a syntax error, meaning the query is incorrect. I would have to look at the code to tell you whats wrong though.
Hi.

I also am having a similiar problem except my error is -5, 5

Could you shed some light on my problems as well.

A little background information.

I was in admin deleting manufactures as I don't use them and when I deleted the last one I got the same error message in Manufactures, Reviews and specials.

Do you need to look at the associated PHP files to find the problem.

I can email them to you if you are interested in taking a look.

Sincerely.

Leon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 11-23-2004, 02:44 PM
New Member
 
Join Date: Apr 2004
Posts: 20
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Lord
Default

What version of MySQL are you using? Check Server Info in Admin under Tools.

I have the same problem for Specials, Reviews, Orders, Products Expected, Newsletters if they are "empty". I manually added a newsletter via MySQL and the error dissapeared. BUT - this means that you always needs to have a product inserted in Specials, Products Expected and so on.
Looks like this happends when you use MySQL 4.16 or newer? The webhosting company using MySQL 4.17 on the shops where I have this problems (3 shops).
Have other shops on other webhosting companies that runs MySQL 4.0.16 - No problems with this version.

Is it anyone that has a clue on whats wrong?

In the forums on Oscommerce.com there is a lot of posting regarding this problem. Can't see any solution so far.
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
Compatible with PHP 4.33 and mysql 3.23 the_error_king osCMax v2 Installation issues 6 06-15-2005 08:19 PM
Problem with MySQL 4 SpongeBob osCMax v1.7 Installation 2 04-14-2005 12:47 PM
MySQL? Please help! extremenewb osCommerce 2.2 Installation Help 3 09-22-2004 08:31 AM
mySQL database mattias2 osCommerce 2.2 Installation Help 1 10-23-2003 07:46 PM


All times are GMT -8. The time now is 04:01 PM.


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