Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Was deleting out all the countries...


Enzo_UK

Recommended Posts

I deleted out all the countries from in Admin, so I could enter my own custom list, and now 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 countries_id, countries_name, countries_iso_code_2, countries_iso_code_3, address_format_id from countries order by countries_name limit -20, 20

 

I am sure it never did this when I set up my other site, so dont know why it did it now!

 

I have got phpMyAdmin but arent all that sure about what needs fixing.

 

I desperately need some kind of assistance.

 

Cheers in advance.

Andrew

Link to comment
Share on other sites

It's a good idea never to 'delete out' all of anything, be it countries, languages, or currencies - because you'll end up with a negative value and those errors.

 

If you want to change the countries put a few of the ones you want in there first, then delete the rest, and then you won't have that error.

 

If you have the original oscommerce.sql file you don't need to restore the whole of the database, just take the countries list and run that in as an sql query.

 

Vger

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...