????
Current Path : /home2/morganrand/backup.morganrand.com/ |
Current File : /home2/morganrand/backup.morganrand.com/write_stated.php |
<?php // ** MySQL settings ** // // mediatemple //define('DB_NAME', 'db11634_common'); // The name of the database //define('DB_USER', 'db11634_common'); // Your MySQL username //define('DB_PASSWORD', 'Xeno20_jKmol'); // ...and password //define('DB_HOST', 'internal-db.s11634.gridserver.com'); // 99% chance you won't need to change this value // godaddy 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', ''); $con = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD) or die(mysql_error()); //echo "Connected to MySQL<br />"; mysql_select_db(DB_NAME, $con) or die(mysql_error()); //echo "Connected to Database<br />"; $room = $_GET['rm']; $state = $_GET['state']; $us = $_GET['us']; $now = time(); $result = mysql_query("UPDATE design_room SET designer_state='" . $state . "', last_login_php='" . $now . "' WHERE room_num='" . $room . "'") or die(mysql_error()); mysql_close($con); ?>