Airway Reservation System

of 9 /9
AIRWAY RESERVATION SYSTEM CODING: 1. Index.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Airway Reservation System</title> <style type="text/css">  body {  background-image:url( 'airplane.jpg');  background-repeat: no-repeat;  background-attachment :fixed;  background-positio n:center; } </style> </head> <body> <p style="text-align:center; color:red; font-size:18px ">Airline Reservarion System</p> <form action="index.php" method="post" name="reserv"> <table width="453" height="155" border="0"> <tr> <th width="218" scope="row">Enter Source Station :</th> <td width="174"><label for="src_list"></label> <select name="src_list" id="src_list"> <option value="select" selected="selected">Select Your Stn</option> <option value="cbe">Coimbatore</option> <option value="chn">Chennai</option> <option value="goa">Goa</option> <option value="blr">Bangalore</option> </select></td> </tr> <tr> <th scope="row">Enter Destination Station :</th> <td><select name="dest_list" id="dest_list"> <option value="select" selected="selected">Select Your Stn</option> <option value="cbe">Coimbatore</option> <option value="chn">Chennai</option> <option value="goa">Goa</option> <option value="blr">Bangalore</option> </select></td> </tr> <tr>

Embed Size (px)

Transcript of Airway Reservation System

  • 7/28/2019 Airway Reservation System

    1/8

    AIRWAY RESERVATION SYSTEM

    CODING:

    1.Index.phpAirway Reservation System

    body{

    background-image:url('airplane.jpg');background-repeat:no-repeat;background-attachment:fixed;background-position:center;}

    Airline Reservarion System

    Enter Source Station :

    Select Your StnCoimbatoreChennaiGoa

    Bangalore

    Enter Destination Station :Select Your StnCoimbatoreChennaiGoaBangalore

  • 7/28/2019 Airway Reservation System

    2/8

    Departure Date :

    Number of Persons :

    12345

    Select Class :

    Economy


    Business

    (10% Extra Tariff)

  • 7/28/2019 Airway Reservation System

    3/8

    }

    // Select a database to use$db_select = mysql_select_db("airline",$connection);if (!$db_select) {

    die("Database selection failed: " . mysql_error());}

    echo "Source Stn : ".$srccode." Destination Stn : ".$destcode." Date ofJourney : ".$date." ";

    $res= mysql_query ("SELECT * FROM `flightlist` WHEREsrc_stn='".$srccode."' AND dest_stn='".$destcode."' ");

    $num=mysql_numrows($res);

    echo " Number of Flights Available : ";echo $num;

    echo"

    S.NO Flight Name Source Station Destination Station Departure Time Arrival TimeDuration Price/Head Book

    ";

    $loopcount=1;while($row = mysql_fetch_array($res)){

    echo "";echo " ".$loopcount." ";echo "";echo " ".$row['flight_name']." ";echo "";

    echo " ".$row['src_stn']." ";echo "";

    echo " ".$row['dest_stn']." ";echo "";echo " ".$row['departure']." ";

    echo "";echo " ".$row['Arrival']." ";

    echo "";echo " ".$row['duration']." ";

  • 7/28/2019 Airway Reservation System

    4/8

    echo "";echo " ".$row['price']." ";

    echo "";echo " Book IT ";echo "";

    echo "";

    $loopcount++;}

    '';}

    }?>

    Book.php

    Book Your Ticket

    Airline Reservarion System

  • 7/28/2019 Airway Reservation System

    5/8

    Enter the Names :

    (Seperated by Comma)

    Enter Your Ph No :

    Enter Your Mail id :

    Need Insurance for the Journey?

    YES(RS. 150 Extra)

    NO


    Payment Method

    Credit Card

    Debit Card


    Cash


  • 7/28/2019 Airway Reservation System

    6/8

  • 7/28/2019 Airway Reservation System

    7/8

    Database Structure:

    1. flightlist

    2. passenger

    OUTPUT:

  • 7/28/2019 Airway Reservation System

    8/8