Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to create a geo_zone


Paula Moss

Recommended Posts

Posted

Do you mean you have deleted the whole Geo zones table from your database or just the contents?

 

If its just the contents, then goto your admin panel > Localizations/Taxes > Tax Zones

Hit the insert button and re-create your tax zone to suit you.

 

If its the whole geo zone table thats gone then you need to run the following in your sql admin (phpmyadmin?)

 

CREATE TABLE `geo_zones` (

`geo_zone_id` int(11) NOT NULL auto_increment,

`geo_zone_name` varchar(32) NOT NULL default '',

`geo_zone_description` varchar(255) NOT NULL default '',

`last_modified` datetime default NULL,

`date_added` datetime NOT NULL default '0000-00-00 00:00:00',

PRIMARY KEY (`geo_zone_id`)

) ENGINE=MyISAM DEFAULT AUTO_INCREMENT=5 ;

Posted

Thanks for that. Yes, the whole geo table is gone. I ran what you told me to do but got this error:

 

#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 'AUTO_INCREMENT=5' at line 8

Archived

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

×
×
  • Create New...