?
Path : /home/admin/domains/happytokorea.com/public_html_bk/promice/Admin/ |
Current File : /home/admin/domains/happytokorea.com/public_html_bk/promice/Admin/editarticlesave.php |
<? @session_start(); ob_start(); $useradmin = $_SESSION["useradmin"]; 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]; if($_FILES["productsphoto"]["name"] != "") { $name=$_FILES['productsphoto']['name']; $tmp=$_FILES['productsphoto']["tmp_name"]; $date_time=date("Y-m-d H:i:s"); $oldname=explode(".",$name); $ext = ""; $ext = ".".$oldname[count($oldname)-1]; $photo_1 =date('YmdHis').$ext; copy($tmp,"../images/images_article/".$photo_1); }else{ $photo_1 = "$_POST[productsphotosend]"; } $sql_data = "update article_kr set article_category_id = '$_POST[article_category_kr]',subject='$_POST[productsname]', detail='$_POST[detail]',images='$photo_1' 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=articlekr.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>