線上書籍

Home

[1071]XOOPS模組開發

<?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") . ")";