如何在php循环中编辑localStorage数组

时间:2016-05-11 13:14:39

标签: javascript php jquery json mysqli

我有名为“totalPackage”的localStorage数组。根据我的项目要求,我必须使用PHP循环更改localStorage Array数据。

这是编码

if (mysqli_multi_query($con,$sql)){
    do{
        if ($result=mysqli_store_result($con)){
            if(mysqli_num_rows($result) > 0){
                $row = mysqli_fetch_array($result);
                echo $row["totalcost"]." ";
            } else {
                //echo "0"; 
            }           
            mysqli_free_result($result);
        } 
    }while (mysqli_next_result($con));
}

当你看到 echo $ row [“totalcost”]。“”; 语句我想删除localStorage数组元素。

0 个答案:

没有答案
相关问题