1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<?php require_once ("check_login.php");
$page_category = $_POST["page_category"];
$cc = count($_POST["idarray"]); for ($i = 0; $i < $cc; $i++) {
$sql = "update otherspage set sort=? where ospageid=?"; $parameters = array($_POST["idarraynumber"][$i], $_POST["idarray"][$i]); bind_pdo($sql, $parameters);
} $dbh = null;
header("Location: otherspage_index.php?page_category=$page_category&msg=Update Successful"); ?>
|