Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Railay Viewpoint Resort</title>
- </head>
- <body>
- <?php
- ini_set('display_errors', 1);
- error_reporting(~0);
- $hostname = "localhost";
- $username = "admin2";
- $password = "012757957";
- $dbname = "customer";
- $strrt_id = null;
- if(isset($_GET["rt_id"]))
- {
- $strrt_id = $_GET["rt_id"];
- }
- $conn = mysqli_connect ($hostname, $username, $password, $dbname);
- mysqli_set_charset($conn, "utf8");
- $sqli = "SELECT * FROM rt_room WHERE rt_id = '".$strrt_id."' ";
- $dbquery = mysqli_query($conn,$sqli);
- ?>
- <form action="save_edit.php" name="frmAdd" method="post">
- <table width="350" border="1">
- <h4 style="color:#000000;" align="left">แก้ไขข้อมูลห้องพัก</h4>
- <tr>
- <th width="500">รหัสห้องพัก</th>
- <td><input type="text" name="rt_id" size="20" value="<?php echo $result["rt_id"];?>"></td>
- </tr>
- <tr>
- <th width="500">ชื่อห้องพัก</th>
- <td><input type="text" name="rt_name" size="20" value="<?php echo $result["rt_name"];?>"></td>
- </tr>
- <tr>
- <th width="500">ราคา</th>
- <td><input type="text" name="txt rt_price" size="20" value="<?php echo $result["rt_price"];?>"></td>
- </tr>
- <tr>
- <th width="500">รายละเอียดห้องพัก</th>
- <td><input type="text" name="txtrt_detail" size="20" value="<?php echo $result["rt_detail"];?>"></td>
- </tr>
- <th width="120">รูปภาพ</th>
- <td><input type="typeImg" name="rt_image"
- value="<?php echo $result["rt_image"];?>">
- <div class="form-group">
- <input type="file" name="typeImg" >
- </div></div></td>
- </table>
- <input type="submit" name="submit" value="ยืนยันการแก้ไข">
- </form>
- <?php
- mysqli_close($conn);
- ?>
- </body>
- </html>
Add Comment
Please, Sign In to add comment