Pick link from database
Posted: Mon Jul 03, 2006 5:24 pm
Hello!
Well what I want to do can be easil explained by exampel:
1. I have list of hotels from New York, Los Angeles, Las Vegas, Tokyo, Berlin, London
2. I have list of motels from New York and Berlin
So I want to do that my PHP script will look which cities are included in database.... If city is included, I'd like to list it as an option to select.
If user selects Hotels, than on site should be listed New York, Los Angeles, Las Vegas, Tokyo, Berlin, London.
If user selects Motels, than on site should be listed New York and Berlin.
In case any new city is added, script automaticly add new City as an option to select in form.
How should I solve this problem?
Thanks for your help!
Well what I want to do can be easil explained by exampel:
1. I have list of hotels from New York, Los Angeles, Las Vegas, Tokyo, Berlin, London
2. I have list of motels from New York and Berlin
So I want to do that my PHP script will look which cities are included in database.... If city is included, I'd like to list it as an option to select.
If user selects Hotels, than on site should be listed New York, Los Angeles, Las Vegas, Tokyo, Berlin, London.
If user selects Motels, than on site should be listed New York and Berlin.
In case any new city is added, script automaticly add new City as an option to select in form.
How should I solve this problem?
Thanks for your help!