Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Need a solution and explaination with php on how each part works. Develop Hotel

ID: 653934 • Letter: N

Question

Need a solution and explaination with php on how each part works.

Develop Hotel Management Information System to keep track of hotel guests.

A Guest should be able:

Guest can view room and select available room (room - provide picture, description, capacity, and the price for the room)

Select number of guests.

Select dates - room should be available.

Guest should do online registration: First Name, Last Name, e-mail, phone, and address.

Guest should be able to amend reservation details/membership. (login)

Guest should be able to view invoice/payment and print details. (login)

Guest should be able to send the invoice by email. (logint)

Explanation / Answer

php resourse for hotel management system accourding to ginen features:

Function available_room($room_id){

$sql = "SELECT * FROM Bookings WHERE RoomID = '".$room_id."'";

$reservation=mysqli_query($link,$sql);

if(mysqli_room_rows($reservation)>0){

return 1;

} else

{

return 0;

}

<?php
$guest=array();
echo count($guest);
?>

if ($result->num_rows > 0) {
    // output data of each row
    while($row = $result->fetch_assoc()) {
        echo"room is avilable  "<br>";
    }
} else {
    echo "room is not avilable <br>:

<form action="online registration.php" method="post">

<input type="text" name="firstname" guest="first name"  /> </label> </div>

<input type="text" name="lastname" guest="last name" /> </label> </div>

<input type="email" name="email" guest="email" /> </label> </div>

<input type=" name="phone" guest="phone"/> </label> </div>

<input type=" name="address" guest="address"/> </label> </div>

</form>

<?php
echo "invoice";
?>

<?php
echo "payment";
?>

<?php
echo "detail";
?>

Guest should be able to send the invoice by email;

Create invoice
        $export = new export()
        $email = new email();
        $email -> format = 'invoice';

        $email -> from = $_POST['email_from'];

        $email -> to = $_POST['email_to'];
        $email -> bcc = $_POST['email_bcc'];
        $email -> subject = $_POST['email_subject'];

        $message = $email -> send ();

}
$smarty -> assign('message', $message);
$smarty -> assign('invoice',$invoice);
$smarty -> assign('active_room', '#status');
?>

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote