Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Register A-Z im admin-customer


jan64

Recommended Posts

Posted

Hi,

 

I have this great contri tryed to install but i get an error and i have no idea what to do.

When i will go to a customer are all the fields blanc adn i get this message at the top of my page.

 

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 'limit 0, 12' at line 1

 

select c.customers_id, c.customers_lastname, c.customers_firstname, c.customers_email_address, a.entry_country_id, c.customers_private_messages from customers c left join address_book a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id order by limit 0, 12

 

Can someone tell me what this means? i am not really an SQL expert :blush:

 

Thanks!

 

Regards,

Jan

Dreams can come true, if you help them a littlebit

Posted
select c.customers_id, c.customers_lastname, c.customers_firstname, c.customers_email_address, a.entry_country_id, c.customers_private_messages from customers c left join address_book a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id order by limit 0, 12

 

Try changing it to something like

 

order by c.customers_lastname limit 0, 12

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted
Try changing it to something like

 

order by c.customers_lastname limit 0, 12

 

Hi thanks for your help, i'll try it out.

Dreams can come true, if you help them a littlebit

Posted
Hi thanks for your help, i'll try it out.

 

I have really no idea where i must change this.

These lines: select c.customers_id, c.customers_lastname, c.customers_firstname, c.customers_email_address, a.entry_country_id, c.customers_private_messages from customers c left join address_book a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id order by limit 0, 12 are not a peace of code. :blink:

I can't find "limit" in customers.php

Dreams can come true, if you help them a littlebit

Archived

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

×
×
  • Create New...