include("config.inc.php") ;
include("group.php") ;
mysql_connect($host,$user,$passwd);
if($usr == ""){}else{
if($usr !== $admin[usr] || $pwd !== $admin[pwd]) {
echo '
ชื่อผู้ใช้หรือรหัสผ่านผิดพลาด
';
}
}
if($usr !== $admin[usr] || $pwd !== $admin[pwd]) {
?>
die();
}
if($action=="unlockdata"){
$sql_data = "update $group_data set photo_dl='1' where no='$no'";
$result_data = mysql_db_query($dbname,$sql_data);
if(!$result_data) { echo "Error : Can not update to database"; exit(); }
}elseif($action=="unlockans"){
$sql_ans = "update $group_ans set photo_al='1' where no='$no'";
$result_ans = mysql_db_query($dbname,$sql_ans);
if(!$result_ans) { echo "Error : Can not save to database"; exit(); }
}
?>
เรียบร้อยแล้วครับ
echo"$webmaster"; ?>
|