header( "location: a_menu1-3.php" );
exit(0);
?>
//connect database
//$con = @mysql_connect("localhost", "nawanta", "naw1234") or die ("ติดต่อ Server ไม่ได้");
//$db = mysql_select_db("pitlokcenter") or die ("ติดต่อ Database ไม่ได้");
// Connect เครื่องตัวเอง
/*$con = @mysql_connect("localhost", "root", "123456") or die ("ติดต่อ Server ไม่ได้");
$db = mysql_select_db("db_gened2012") or die ("ติดต่อ Database ไม่ได้");*/
// เครื่อง มหาวิทยาลัย Server ใหม่
$con = @mysql_connect("localhost", "gened_office", "gened2015") or die ("ติดต่อ Server ไม่ได้");
$db = mysql_select_db("db_gened2012") or die ("ติดต่อ Database ไม่ได้");
// เครื่อง มหาวิทยาลัย
/* $con = @mysql_connect("10.10.20.225", "cic09", "cic1234") or die ("ติดต่อ Server ไม่ได้");
$db = mysql_select_db("db_gened2012") or die ("ติดต่อ Database ไม่ได้");*/
mysql_query("set names tis620");
//mysql_query("set names latin1");
//mysql_query("SET character_set_client = tis620"); mysql_query("SET character_set_connection = tis620"); mysql_query("SET character_set_database = tis620"); mysql_query("SET character_set_results = tis620"); mysql_query("SET character_set_server = tis620");
?>
Fatal error: Uncaught Error: Call to undefined function mysql_query() in E:\inetpub\wwwroot\office\gened.nu.ac.th\counter\counter_useronline.php:15
Stack trace:
#0 E:\inetpub\wwwroot\office\gened.nu.ac.th\c_menu1-4.php(8): include()
#1 {main}
thrown in E:\inetpub\wwwroot\office\gened.nu.ac.th\counter\counter_useronline.php on line 15