:::

9-3 save.php

<?php
include "header.php";
if (power_chk('', 1)) {
    $myts = MyTextSanitizer::getInstance();
    $id = $myts->htmlSpecialChars($_POST['id']);
    $value = $myts->htmlSpecialChars($_POST['value']);
    $sn=(int) $_POST['sn'];

    $sql = "update " . $xoopsDB->prefix("snews") . " set `{$id}`='{$value}' where sn='{$sn}'";
    $xoopsDB->queryF($sql);
    echo $value;
}

 


:::

搜尋

QR Code 區塊

https%3A%2F%2Fmail.tad0616.cp27.secserverpros.com%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D1501%26tbsn%3D44

書籍目錄

展開 | 闔起

線上使用者

344人線上 (147人在瀏覽線上書籍)

會員: 0

訪客: 344

更多…