Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $con=mysqli_connect("localhost","root","","hotel");
- /* if($con!=null)
- echo"Sucess";*/
- $result=mysqli_query($con,"SELECT * FROM room");
- /*if(!$result)
- die("connot");*/
- $result=mysqli_query($con,"UPDATE room SET Floors='".$_POST['text2']."',Price='".$_POST['text3']."',SD='".$_POST['text4']."', Room_Type ='".$_POST['text5']."' WHERE Room_id=".$_POST['id']." ");
- if(!$result)
- die("connotfuckyouuu");
- else
- echo"Congratulations The record is updated.";
- $result=mysqli_query($con,"SELECT Floors,Price,SD,Room_Type FROM room ");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment