????

Your IP : 3.17.174.204


Current Path : /home2/morganrand/backup.morganrand.com/0tools/
Upload File :
Current File : /home2/morganrand/backup.morganrand.com/0tools/read_stated.php

<?php
if (isset($_GET['rm']))
{
	if (is_numeric($_GET['rm']))
	{
		$room = $_GET['rm'];
		$us = isset($_GET['us']) ? $_GET['us'] : '';

		$conn = null;
		// ** MySQL settings ** //
		require_once('../db_connection.php');

		$sql = "SELECT * FROM design_room WHERE room_num=" . $room;
		$result = $conn->query($sql);

		if ($result->num_rows > 0) {
		    // output data of each row
		    while($row = $result->fetch_assoc()) {
		        echo $row['user_state'];
		    }
		} 
		else {
		    echo "0 results";
		    exit;
		}
		$conn->close();
	}
}
?>