????

Your IP : 18.217.104.36


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

<?php
// ** MySQL settings ** //
define('DB_NAME', 'wanderfu_common');    // The name of the database
define('DB_USER', 'wanderfu_master');     // Your MySQL username
define('DB_PASSWORD', 'Wanderfuls3945');	 // ...and password
define('DB_HOST', 'localhost');    // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');

mysql_connect(DB_HOST, DB_USER, DB_PASSWORD) or die(mysql_error());
// echo "Connected to MySQL<br />";

mysql_select_db(DB_NAME) or die(mysql_error());
// echo "Connected to Database<br />";

$room = $_GET['rm'];
$us = $_GET['us'];

$result = mysql_query("SELECT * FROM design_room WHERE room_num='" . $room . "'") or die(mysql_error());

$row = mysql_fetch_array( $result );

echo $row['user_state'];
?>