/var/www/hkosl.com/innoutstorage/webadmin/discount_sort_update.php


1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
    
require_once ('check_login.php');

    
$cc count($_POST["idarray"]);
    for (
$i 0$i $cc$i++) {
        
$sql "update news set newssort=? where newsid=?";
        
$parameters = array($_POST["idarraynumber"][$i], $_POST["idarray"][$i]);
        
bind_pdo($sql$parameters);
    }

    
$dbh null;

    
header("Location: news_index.php?msg=更新成功");