PDA

View Full Version : State Subcategories


tarheit
01-12-2006, 10:00 PM
For those wanting to add states as categories, I found it much easier to run the following query in phpMyAdmin rather than create each manually in the admin area. Just search the following code for 117 and replace it with the id of the category the states should fall under. Then run the code in phpMyAdmin. I found it saved a lot of time when adding sub categories to several different main categories.

Content visible to registered users only.

-Tim

anylink
01-13-2006, 06:51 AM
very nice thanks a load!

DelMarSurf
06-02-2006, 12:44 PM
YEA! This works perfectly. Thanks!!! :D

anon
06-02-2006, 02:52 PM
Content visible to registered users only.
Remember, i never steer anyone wrong, and like i told you, this breaks things in terms of adding more new categories. Step 2 is to now find my post to fix what's been hacked up by the original posters database additions.

Rob

montytx
10-29-2006, 05:15 PM
Does anyone have a state/ city dump they could share?

johnbmtl
05-28-2007, 04:56 PM
When I try running this on the database (using 3.2), I get the following error:

"#1136 - Column count doesn't match value count at row 1 "

Is this because of something that I am not doing correctly or has the database changed since this was posted?

John

searchangle
06-22-2007, 07:10 AM
#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 '; INSERT INTO PLD_CATEGORY VALUES ('','Alaska','Alaska',NULL,3,2,NOW(),0,0,0); ' at line 1

omakad
08-28-2007, 08:34 PM
I'm getting the same error. I've run this code before for the rest of my cat's but now it's not working any more. Has anyone figured out what is going on?

Mr_Bill
08-28-2007, 09:13 PM
If you are trying to use this for v.3.2 you could try this

Content visible to registered users only.

omakad
08-29-2007, 09:19 PM
Do we still need to specify the category ID anywhere in this code? and if yes then where? I'm sorry I'm retarded about running mySQL inquires. Thanks.