View Single Post
  #11  
Old 03-13-2008, 10:43 PM
memoryleak memoryleak is offline
Private First Class
 
Join Date: Mar 2008
Posts: 4
Default Re: Hotels management system

It's all in the query and is not as hard as it seems. :) Basically, you need to write a query that selects all of the options that the user selected.

For example, if the user selects
rooms=2
city=New York

Your query would look something like:

Code:
$query=mysql_query("SELECT * from TABLE where (field_rooms='".$_POST['rooms']."') AND (field_city='".$_POST['city']."')");
That should give you enough to go on if you have basic mysql and php knowledge. If you don't know much about mysql and php, you should use a pre-packaged system.
__________________
http://WebsiteHacks.com
Computer and website programming/design/development help.
Reply With Quote