Forum Moderators: coopster

Message Too Old, No Replies

Advices about type of save parameters

         

orion_rus

9:06 am on Jan 26, 2005 (gmt 0)

10+ Year Member



Hello world, i have places of interesting which i need to show. It have two types - in a city, or outside a city. If it's a first type i need to store a cityid, if it's outside a city i need to store X,Y parameters on a map and the icon onmouseover. Which type of store this u select? in a 1 table (two types here), or in a 2 tables (each for 1 type)?

mcibor

3:30 pm on Jan 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I would recommend one table with "sity id", "x", "y". If sityid is set, then it's a city, if x,y then it's outside. you can always add another var: "incity" = 0 or 1 to specify that it's in or out of city. It would even be better, because for then you can store the info of x,y of city.