Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > VodaHost Web Hosting Support > mySQL & PHP

Notices

mySQL & PHP Discussions, information and help with mySQL and PHP.

Reply
 
Thread Tools
  #1  
Old 05-29-2009, 12:53 AM
Staff Sergeant
 
Join Date: Aug 2006
Posts: 46
Default adding cities to existing database

I had hired a developer to build and install my database.

The database has the names of all US cities.
The problem is, I need to break out the large cities into districts. For example, San Francisco has 7 districts, San Jose has 6 districts.

I downloaded the cities table and thought that I could just remove San Jose and add say, san jose-east, san jose-west, san jose downtown...etc...

I would then just upload the file to the database.

It seems logical to me that this would work but he says no, that it will affect other things..(which he did not explain).

Does it make sense that a database would have to be "static"?
Would it affect the search capabilities?
Finally, would you need more info to determine if it would or would not work?

Any help, comments, are appreciated, I am under the gun here to get this project to market.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 05-29-2009, 05:16 AM
Watdaflip's Avatar
Major General
 
Join Date: Sep 2005
Location: Cincinnati, Ohio
Posts: 2,151
Default Re: adding cities to existing database

It would depend on the table structure, and if its just a single table or if there is a relationship between multiple tables (or within its own table for that matter). If you post the table(s) structure we can take a look and I can possible offer advice from there... but with just a vague description there really isn't anything anyone can tell you
__________________

Register/Login Script
Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 05-29-2009, 07:33 PM
Staff Sergeant
 
Join Date: Aug 2006
Posts: 46
Default Re:structure

I am hoping this is what you were asking.
Pardon me if its wrong.
It is the natural progression...mess up early on with Blue Voda...get decent at it, then start moving on to databases and other things.


If you would, and I think it would be helpful is to go to the web page and look at the search box at top. I think, as I see this "structure" that the cities,st is redundant and not needed.
It confuses the person doing the search.

Thanks for the help.

Mike
www.mingamo.com


Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype qpmqfgp_coupons.cities.NAME (BWI)BALTMOR-WSHNG ZWOLLE 32 32 0 1 32.0000 NULL TINYTEXT qpmqfgp_coupons.cities.ST AK WY 12 12 0 0 12.0000 NULL ENUM('AK ','AL ','AR ',... qpmqfgp_coupons.cities.STATE ALABAMA WYOMING 16 16 0 0 16.0000 NULL ENUM('ALABAMA ','ALASKA ','AMERIC...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 05-29-2009, 09:31 PM
Watdaflip's Avatar
Major General
 
Join Date: Sep 2005
Location: Cincinnati, Ohio
Posts: 2,151
Default Re: adding cities to existing database

It's close but not exactly what I was looking for.

If you login to your cpanel, go to phpmyadmin. Select the database, and go to export. Uncheck data (structure should be the only thing checked). Just copy and paste the text it outputs into a post here. Assuming its only one table in the database, it should only be a dozen or two lines of text, if you get hundreds or thousands of lines of text then you probably didn't uncheck the data box.

Just a final note... even with this information I can't guarantee that if you do many changes it won't mess anything up. You may also want to talk to your programmer and ask what the ramifications of adding another row to the cities table would be and/or what else would have to be edited
__________________

Register/Login Script
Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 05-30-2009, 04:10 AM
Staff Sergeant
 
Join Date: Aug 2006
Posts: 46
Default I'll address it with programmer

I guess I will just bring it up with him.
It is too important to risk as there is more than meets the eye.

Thanks for your help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT +1. The time now is 01:26 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2005-2009 VodaHost Web Hosting Your Perfect Web Host - All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203