1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<?php include_once ("check_login.php"); $faq_type = $_POST["faq_type"];
$cc = count($_POST["idarray"]); for ($i = 0; $i < $cc; $i++) {
$sql = "update faq set sort=? where faq_id=?"; $parameters = array($_POST["idarraynumber"][$i], $_POST["idarray"][$i]); bind_pdo($sql, $parameters); } $dbh = null;
header("Location: faq_index.php?msg=修改成功");
|