#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    6
    Rep Power
    0

    Retrieve db data on submit


    Hi need some help.I am creating a small hotel booking system.I have a mysql Db whith
    tables rooms, clients, bookings,prices,supplements, supplements booked.
    I have a search form. Clicking on a calendar img will display a calendar.Clicking on the calendar
    will insert the date in the box.Also I can select n.persons, nights,adults,children etc.
    Here I am stuck.I need some php code that will process this data and retrieve available rooms
    from the rooms table, for a specified arr/dep date. Thank you
  2. #2
  3. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,959
    Rep Power
    1014
    Hi,

    either hire a programmer or show us what you've done and describe the concrete problem.

    This is no "code for free" forum. We can help you with concrete questions, but we won't write the code for you.
    The 6 worst sins of security ē How to (properly) access a MySQL database with PHP

    Why canít I use certain words like "drop" as part of my Security Question answers?
    There are certain words used by hackers to try to gain access to systems and manipulate data; therefore, the following words are restricted: "select," "delete," "update," "insert," "drop" and "null".
  4. #3
  5. Sarcky
    Devshed Supreme Being (6500+ posts)

    Join Date
    Oct 2006
    Location
    Pennsylvania, USA
    Posts
    10,908
    Rep Power
    6352
    So you need basically all of the most difficult part of the system? We're not going to write your core processor for you for free. If you can't figure it out, pay someone to do it (be prepared to spend at least US$500, and that's going to produce pretty bad code).
    HEY! YOU! Read the New User Guide and Forum Rules

    "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin

    "The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002

    Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Dec 2004
    Posts
    3,031
    Rep Power
    377
    Originally Posted by carlo1937#
    Hi need some help.I am creating a small hotel booking system.I have a mysql Db whith
    tables rooms, clients, bookings,prices,supplements, supplements booked.
    I have a search form. Clicking on a calendar img will display a calendar.Clicking on the calendar
    will insert the date in the box.Also I can select n.persons, nights,adults,children etc.
    Here I am stuck.I need some php code that will process this data and retrieve available rooms
    from the rooms table, for a specified arr/dep date. Thank you
    Hi I would like a ferrari & ideally go back in time..
  8. #5
  9. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,959
    Rep Power
    1014
    I think he got it now.
    The 6 worst sins of security ē How to (properly) access a MySQL database with PHP

    Why canít I use certain words like "drop" as part of my Security Question answers?
    There are certain words used by hackers to try to gain access to systems and manipulate data; therefore, the following words are restricted: "select," "delete," "update," "insert," "drop" and "null".

IMN logo majestic logo threadwatch logo seochat tools logo