Server IP : 119.59.102.212 / Your IP : 18.225.72.2 Web Server : Apache/2 System : Linux narin 2.6.32-042stab142.1 #1 SMP Tue Jan 28 23:44:17 MSK 2020 x86_64 User : yangkam ( 1022) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/yangkam/domains/yangkam.go.th/private_html/coremain/module/poll/ |
Upload File : |
<?php session_start(); import_request_variables('pG', 'p_'); if($p_id!="") { $id=trim($p_id); } include("../../../$_SESSION[web_name]/connect.php"); $sql = "delete from cms_poll$group where id='$id'"; $result = mysql_query($sql); // ทำการ update status poll ให้ active แทนอันที่โดนลบ $sql="SELECT id FROM `cms_poll$group` order by id desc"; $result = mysql_query($sql); $data = mysql_fetch_array($result); $sql="update cms_poll$group set status='1' where id=$data[0]"; $result=mysql_query($sql); ?>