Results 1 to 10 of 10

Thread: reservation form help

  1. #1
    Join Date
    May 2009
    Posts
    15

    reservation form help

    Hi,,

    i had a reservation form .. that had two text box for form_date & to_date..

    when the employee enter those dates i want to save them in a var .. then go to a table in mysql .. name Booked .. to check which room will not be booked in those dates ..
    and the show them in a list box so the employee can choose one of them ..

    i had do the code but i don't know how to complate it .. so i need your help please ..

    This is the code:

    declare
    room_no booked.RNO%type;
    from_d booked.from_date%type;
    to_d booked.to_date%type;

    begin
    select RNO, from_date, to_date into room_no, from_d, to_d from booked
    where booked.from_date <> :from_date AND booked.to_date <> :to_date;

    --- need to put a statment to retreve values in a list to chose one of them --
    end;

  2. #2
    Join Date
    May 2009
    Posts
    15

    re: reservation form help

    could please help me

    i need to finish my project

  3. #3
    Join Date
    Feb 2009
    Posts
    96

    re: reservation form help

    you need to state what language your doing in and program your using ect... what you wrote looks like many different languages..

  4. #4
    Join Date
    May 2009
    Posts
    15

    re: reservation form help

    i am using PL/SQL language ..

  5. #5
    Join Date
    Mar 2008
    Posts
    227

    Re: reservation form help

    Hi CS,

    You do not need to worry about your problem whenever I am their to help you.

    Code:
    DECLARE
      bonus    NUMBER(6,2);
      empid    NUMBER(6) := 120;
      hiredate DATE;
    BEGIN
    -- retrieve the date that employee was hired, the date is checked
    -- to determine the amount of the bonus for the employee
      SELECT hire_date INTO hiredate FROM employees WHERE employee_id = empid;
      IF hiredate > TO_DATE('01-JAN-98') THEN
          bonus := 500;
       ELSIF hiredate > TO_DATE('01-JAN-96') THEN
          bonus := 1000;
       ELSE
          bonus := 1500;
       END IF;
       DBMS_OUTPUT.PUT_LINE('Bonus for employee: ' || empid || ' is: ' || bonus );
    END;
    use like this programming logic for your date requirement.

  6. #6
    Join Date
    May 2009
    Posts
    15

    Re: reservation form help

    bro. DIID .. thanx alot

    i understand your code but i want the output to be in a list or in a window that the user can saw it then choose one of them to put in a text box ..

    i had tried to read about LOV .. but i don't understand it very will so i can't wrote it in my program

    i feel realy sick

  7. #7
    Join Date
    May 2009
    Posts
    15

    Re: reservation form help

    HELP

  8. #8
    Join Date
    May 2009
    Posts
    15

    Re: reservation form help

    i had wrote this code in a button in oracle 10g form ..

    cause your code work in SQL server only ..

  9. #9
    Join Date
    May 2009
    Posts
    15

    Re: reservation form help

    UP UP UP UP UP

  10. #10
    Join Date
    May 2009
    Posts
    15

    Re: reservation form help

    I realy realy need your help..

    the submition is on monday ..

    and i still have this problem .. and another one that i am trying to solve it ..

    please please give me a key soulotion ..


Similar Threads

  1. Replies: 5
    Last Post: 25-05-2011, 10:21 PM
  2. Replies: 2
    Last Post: 02-05-2011, 07:06 AM
  3. What is CozyRestaurant Reservation for Workgroup
    By Abbie in forum Windows Software
    Replies: 5
    Last Post: 30-01-2010, 01:33 AM
  4. Problem reloading MDI child form in main form.
    By AFFAN in forum Software Development
    Replies: 3
    Last Post: 30-01-2009, 09:05 PM
  5. Activating IP Address Reservation
    By sevaanan in forum Small Business Server
    Replies: 3
    Last Post: 21-04-2007, 02:58 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,129,414.95682 seconds with 17 queries