:::

8-5 save_sort.php

<?php
include_once "../../mainfile.php";
include_once "function.php";

$sort = 1;
foreach ($_POST['sn'] as $sn) {
    $sql = "update " . $xoopsDB->prefix("snews") . " set `sort`='{$sort}' where `sn`='{$sn}'";
    $xoopsDB->queryF($sql) or die(_TAD_SORT_FAIL . " (" . date("Y-m-d H:i:s") . ")" . $sql);
    $sort++;
}
mk_json();
echo _TAD_SORTED . "(" . date("Y-m-d H:i:s") . ")";

 


:::

搜尋

QR Code 區塊

https%3A%2F%2Ftad0616.net%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D1493%26tbsn%3D44

書籍目錄

展開 | 闔起

線上使用者

33人線上 (16人在瀏覽線上書籍)

會員: 0

訪客: 33

更多…