This is a discussion on zones not importing - strange error within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I'm trying to copy and paste some of the world zone contributions sql files from bbedit into the zones table ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I'm trying to copy and paste some of the world zone contributions sql files from bbedit into the zones table in phpMyAdmin. But I keep getting this message: Database catalog running on localhost Error SQL-query*:* INSERT INTO zones VALUES ( 1, 223, 'AL', 'Alabama' ) MySQL said: Duplicate entry '1' for key 1 Back It doesn't matter which zones I copy and paste - after a certain amount I keep getting an error which is similar, with or without Alabama! Is there a limit to the amount of zones I can have in the zones table or something? |
| Sponsored Links | ||
| ||
|
#2
| ||||
| ||||
| You have to empty the table first. You cant have 2 records with the same number...
__________________ Michael Sasek osCMax Developer
|
|
#3
| |||
| |||
| I did empty the table first then under the sql tab simply copied and pasted the national zones that I wanted to use which I downloaded from the zones contributions list. I was able to do this fine for all the zones (usa,uk,australiam mexico, etc.) except for Canada, Switzerland, Austria and Germany. When you say that I can't have two records with the same number (i.e 1 in VALUES ( 1, 223, 'AL', 'Alabama' ) ) should I check to see if this number is used in the zones of Canada, Switzerland, Austria and/or Germany and simply change this to a number of my choice of number (not used by any of the other world zones)? If so what mistakes should I be careful of not doing? |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HELP with STRANGE Fedex error message | torweb | osCMax v2 Features Discussion | 2 | 05-12-2006 09:51 PM |
| How to add sub zones in tax zones | cage1014 | osCommerce 2.2 Modification Help | 0 | 01-04-2006 09:06 AM |
| any documentation available? (zones / shipping / tax zones.. | brianstorm | osCommerce 2.2 Modification Help | 3 | 09-23-2003 10:17 AM |
| Strange install error.... | ceres | osCommerce 2.2 Installation Help | 0 | 06-02-2003 03:01 PM |
| Strange error message | killermonkey | osCommerce 2.2 Modification Help | 1 | 02-05-2003 09:42 PM |