?
Path : /home/admin/domains/happytokorea.com/public_html_bk/happyezystyle/Admin/ |
Current File : /home/admin/domains/happytokorea.com/public_html_bk/happyezystyle/Admin/EditAccountSave.php |
<? @session_start(); ob_start(); $useradmin = $_SESSION["useradmin"]; if(empty($useradmin)) { echo "<script>alert('หน้านี้จำกัดเฉพาะ Admin เท่านั้น');history.back();</script>"; exit(); } require_once "../include/tdate.php"; require_once "../include/connect.php"; require_once "../include/connectdb.php"; $sql="select * from useradmin where useradmin='$useradmin'"; $db_query=mysql_db_query($db,$sql); $result=mysql_fetch_array($db_query); $id=$result[id]; $adminname=$result[name]; $user_admin=$result[useradmin]; $pass_admin=$result[passadmin]; $sql_data = "update bank set accname='$_POST[accname]',bankname='$_POST[bankname]',accno='$_POST[accno]',branch = '$_POST[branch]',acctype='$_POST[acctype]' where id = '$_POST[idx]'"; mysql_query($sql_data); ?> <html> <head> <title><? echo "$headtxt"; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <!-- Fireworks MX Dreamweaver MX target. Created Sat Apr 02 10:29:23 GMT+0700 (SE Asia Standard Time) 2011--> <link href="../css/style.css" rel="stylesheet" type="text/css"> <meta http-equiv="refresh" content="3;URL=Account.php"> </head> <body bgcolor="#ffffff"> <div align="center"><strong> </strong> <br> <br> <img src="../images/note_accept.png" width="64" height="64"><br> รายการที่ท่านเลือกถูกแก้ไขเรียบร้อยแล้ว<br> รอสักครู่</div> </body> </html>