?
Path : /home/admin/public_html/old/backoffice/php/ |
Current File : /home/admin/public_html/old/backoffice/php/send_list_fields.php |
<?php $root_path = "../"; include($root_path."header.php"); $db_tm = new sql_db($dbhost, $dbuser, $dbpasswd, $dbname, false); /* echo $TB,"<br>"; //ชื่อตารางภาษาอังกฤษ echo $TBTH,"<br>"; //ชื่อตารางภาษาไทย echo $selitem,"<P>"; //ชื่อ Group echo $CURRENT_PATH,"<P>"; //path ปัจจุบัน echo "<script>alert('$TB $TBTH $selitem');</script>"; echo $chk_data_fields,"<br>"; echo strlen($chk_data_fields)-1,"<br>"; echo substr($chk_data_fields,0,strlen($chk_data_fields)-1),"<br>"; */ $sql = "select * from $selitem where 0"; $result = $db_tm->sql_query($sql); $fieldsname = $db_tm->sql_fieldname($offset=1,$result); $data_notshow = substr($chk_data_fields,0,strlen($chk_data_fields)-1); $sql_update = "update $selitem set NOTSHOW='".$data_notshow."' where $fieldsname = '".$TB."' "; $result = $db_tm->sql_query($sql_update); echo "<script>window.close();window.parent.opener.parent.basefrm.location.href='".$CURRENT_PATH."/list_data.php?TB=$TB&TBTH=$TBTH&selitem=$selitem';</script>"; ?>