I had our OSMAX running fine under a server with apache 1.3x and MySQL MySQL-3.23.58-1, we moved it over to a newer server with Apache 2.x and MySQL-server-4.1.8-0.
My Problem is when you go to certain menu options like reports I get this error:
Best Customer Orders-Total
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 '-12, 12' at line 1
select c.customers_firstname, c.customers_lastname, sum(op.products_quantity * op.final_price) as ordersum from customers c, orders_products op, orders o where c.customers_id = o.customers_id and o.orders_id = op.orders_id group by c.customers_firstname, c.customers_lastname order by ordersum DESC limit -12, 12
[TEP STOP]
Most of the other menus, and the front end run just fine....
I used MySQL administrator to backup from the old server, and restore to the new server the DB. Then I did an Oscommerce backup, and a command line restore as specified in the docs, with the same result.
Any ideas?
Thanks!





LinkBack URL
About LinkBacks










Bookmarks