0byt3m1n1-V2
Path:
/
home
/
bangtoey
/
domains
/
bangtoey.go.th
/
public_html
/
webboard
/
admin
/
[
Home
]
File: edit_cat.php
<? session_start(); if($user==""){ $message = "กรุณา Login ก่อน."; $url = "../../admin/index.php"; include("../../admin/alert.php"); exit; } ?> <title>-=- แก้ไขข้อมูลเรียบร้อยแล้ว -=-</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-874"> <link rel="stylesheet" href="../style.css" type="text/css"> </head> <body bgcolor="#FFFFFF"> <? require("../config.inc.php"); if($auid!=$admin || $apwd!=$admin_pwd) { echo "<br><br><center>Error : Admin ID and Password"," กรุณาตรวจสอบอีกครั้ง","<br><br>[ <a href='javascript:history.back(1)'>กลับไปแก้ไข</a> ]</center>"; exit; } else { mysql_connect($host,$user_db,$passwd_db); mysql_query ("SET NAMES 'tis620'"); $sql = "UPDATE webboard_category SET cat_detail='$cate_detail', cat_title='$cate_title' WHERE id='$editcatid'"; $result = mysql_db_query($dbname,$sql); } mysql_close(); #โชว์รายละเอียด print "<meta http-equiv=refresh content=0;URL=category.php?Category=$Category>"; ?> </body> </html>
©
2018.