|
||||||
| General Programming Non language specific, Assembly, Linux/Unix, Mac and anything not covered in other topics. Talk about Programming Theory here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
| Sponsored Links |
|
|
|
|||||
|
Looks like a good database design. When you say they will contain "ALL" information of the other tables you mean you will be using a join or a view to show that data correct?
If it were me I would create one search page that would allow you to specify what you were searching. For example, you could include a get or post variable (that was retrieved from an option/select box) that contained a number. If number=1 then search this, 2 this. Instead of if statements I suggest using switch/case though.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages! |
|
|||||
|
Thank you very much for your answer
Yes, I do think that it's a good solution if there aren't many kinds of companies. If I want to add some more types, for ex Resorts, Airlines, Restaurants ... it will be a problem to handle pages, for ex visible / invisible controls, displaying fields, a lot of switch/case, heavy page load ... Then, I would like to know if building different pages for each types of companies is a possible solution? Or is there any other solution for this situation? I would appreciate any answer. And I would like to express my warmest greeting to forum codecall.net, I think I will use this forum to improve my knowledge and contribute more to community. Sorry for my English, too ![]() |
|
|||||
|
It sounds like your project may grow fairly large. You might want to build a base page and then add modules for each type of company. Your main page may work like this:
Code:
switch
case "AirCompany":
doAir;
break;
case "Train":
doTrain;
break;
Code:
function doTrain ()
{
// Code.....
if (number == 1)
......
}
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages! |
|
|||||
|
I don't know much about the database portion of that, but I think it's interesting how you're making a travel website.
__________________
Cheap Airsoft Guns If you are looking for high-quality, yet cheap, airsoft guns, then check out MrAirsoft.com |
| Sponsored Links |
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What Programs do you use for web design | TVDinner | Website Design | 113 | 07-17-2008 12:14 PM |
| Tables or DIVs for webpage design... | Johnnyboy | Website Design | 4 | 11-11-2007 11:02 AM |
| mysql/php backbone implementation question for an online cash/gambling game | ISee | PHP Forum | 0 | 10-30-2007 09:53 AM |
| Change design to make more $ | Montecarlo | Website Design | 11 | 07-13-2006 01:05 PM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |
Goal: 100,000 Posts
Complete: 97%