|
| |||||||
| Mods and contribution Discussion This forum is only for discussion of modding phpLD. For specific mod releases, please see the appropriate forum. |
![]() |
| | topic widgets |
| | #1 |
| Supporter Join Date: Jan 2006 Location: Ohio Posts: 26 | 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. Code: Content visible to registered users only. Last edited by David; 03-21-2009 at 10:48 PM. |
| |
| | #2 |
| Join Date: Dec 2005 Posts: 7 | very nice thanks a load! |
| |
| | #3 |
| Supporter Join Date: May 2006 Posts: 55 | YEA! This works perfectly. Thanks!!! |
| |
| | #4 |
| Supporter Join Date: Feb 2006 Location: As far from you as humanly possible! Posts: 2,860 | Code: Content visible to registered users only. Rob |
| |
| | #5 |
| Supporter Join Date: Feb 2006 Posts: 15 | Does anyone have a state/ city dump they could share? |
| |
| | #6 |
| Join Date: May 2007 Location: Blainville (Montreal area), QC. Canada Posts: 21 | 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 |
| |
| | #7 |
| Join Date: May 2007 Posts: 63 | #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 __________________ ______________________________________________ My Site: ![]() Free SEO Tools Directory - SEO Tool Land |
| |
| | #8 |
| Supporter Join Date: Jul 2007 Posts: 21 | 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? |
| |
| | #9 |
| Supporter Join Date: May 2007 Posts: 159 | If you are trying to use this for v.3.2 you could try this Code: Content visible to registered users only. |
| |
| | #10 |
| Supporter Join Date: Jul 2007 Posts: 21 | 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. |
| |