This repository has been archived on 2026-06-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
EDT/admin/debug/alter_jgd.php
T
wsh5485 7e47ce238b chore: 添加多个图片和资源文件
添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
2025-06-15 13:04:37 +08:00

22 lines
793 B
PHP

<?php
//-------------------------------------------------------更新价格带
require "../config.php";
include "../../tmpl/config.php";
require THIS_FILE_ROOT."/include/function.php";
require THIS_FILE_ROOT."/include/db_mysql.php";
//require THIS_FILE_ROOT."/include/page.class.php";
error_reporting(E_ERROR | E_WARNING | E_PARSE);
//-------------------------------mysql connect
$db=new DB_Sql;
$db->connect($dbhost,$dbuser,$dbpw,$dbname,"p");
$q="select * from ".$table_pre."kh";
$r=$db->query($q);
$i=1;
while($m=$db->fetch_array($r)){
$q1="update ".$table_pre."kh set jgd='".get_jgd($m["price"])."' where id='".$m["id"]."'";
$db->query($q1);
$db->query("update ".$table_pre."order set jgd='".get_jgd($m["price"])."' where iid='".$m["id"]."'");
echo " . ";
}
echo "<br>更新完成";
?>