Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Backend Errors


kez

Recommended Posts

Hi,

 

Installed a wamp package on w2k for test purpose and the backend is finally working ... Thanks Vger :D .

 

(

Here is my system spec:

MySQL 4.1.10a-nt

Apache/1.3.33 (Win32) PHP/5.0.4

PHP 5.0.4 (Zend: 2.0.4-dev)

)

 

On given pages I get specific errors as follows.

Can anyone indicate how these can be fixed:

 

a) Administration --> Customers --> Orders

http://localhost/admin/orders.php

 

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 o.orders_id, o.customers_name, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, s.orders_status_name, ot.text as order_total from orders o left join orders_total ot on (o.orders_id = ot.orders_id), orders_status s where o.orders_status = s.orders_status_id and s.language_id = '1' and ot.class = 'ot_total' order by o.orders_id DESC limit -20, 20

 

[TEP STOP]

 

 

b) Administration --> Reports --> Products Purchased

http://localhost/admin/stats_products_purchased.php

 

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 p.products_id, p.products_ordered, pd.products_name from products p, products_description pd where pd.products_id = p.products_id and pd.language_id = '1' and p.products_ordered > 0 group by pd.products_id order by p.products_ordered DESC, pd.products_name limit -20, 20

 

c) Administration --> Reports --> Customers Orders Total

http://localhost/admin/stats_customers.php

 

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 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 -20, 20

 

[TEP STOP]

 

d) Administration --> Tools --> Newsletter Manager

http://localhost/admin/newsletters.php

 

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 newsletters_id, title, length(content) as content_length, module, date_added, date_sent, status, locked from newsletters order by date_added desc limit -20, 20

 

[TEP STOP]

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...