0byt3m1n1-V2
Path:
/
home
/
bangtoey
/
domains
/
bangtoey.go.th
/
public_html
/
poll
/
[
Home
]
File: set_status_main.php
<?php session_start(); if($_SESSION["user"]==""){ session_destroy(); $message = "กรุณา Login ก่อน."; $url = "../admin/index.php"; include("../admin/alert.php"); exit; } require_once('../admin/Connections/conndb.php'); mysql_select_db($database_conndb, $conndb); header('Content-Type: text/html; charset=windows-874'); if($_GET[id]!=""){ $now=date("Y-m-d H:i:s"); $sql="update poll set actived='1' ,updated='".$now."' WHERE id_poll=".$_GET[id]; mysql_query($sql) or die(mysql_error()); //header("Location: add_choice.php?idp=".$datp[id_poll]); } if($_GET[del]!=""){ $now=date("Y-m-d H:i:s"); $sql="update poll set actived='0' ,updated='".$now."' WHERE id_poll=".$_GET[del]; mysql_query($sql) or die(mysql_error()); // header("Location: add_choice.php?idp=".$datp[id_poll]); } header("Location: admin.php"); ?>
©
2018.