53
// Get the room being booked
$q = "SELECT booking.room_id from booking where user_id =
'".$_SESSION["id"]."'";
$result = mysql_query($q);
// Update room status
$update = "UPDATE room SET status = 'pending' WHERE id =
'".$room."'";
mysql_query($update);
// Send Email and SMS[Operation 6]
$sql="select * from users where id = '".$student."'";
$Email = $arr['email'];
$Telephone = $arr['cell'];
$telephone= $Telephone;
$from = "
";
$to = "<".$student."@uwc.ac.za>,";
$to .= "<".$Email.">,";
$to .= "<".$telephone."@mtn.co.za>,";
$to .= "<".$telephone."@vodacom.co.za>,";
$to .= "<".$telephone."@cellc.co.za>,";
$subject = "Residence Booking Confirmation";
Dostları ilə paylaş: