更新订单表的色系
connect($dbhost,$dbuser,$dbpw,$dbname,"p"); $q="select * from ".$table_pre."keyword where cate='color'"; $r=$db->query($q); while($m=$db->fetch_array($r)){ $sx=get_sx($m["no"]); $q1="update ".$table_pre."order set sx='".$sx."' where color='".$m["no"]."'"; //echo $q1."
"; $db->query($q1); echo ". "; } echo "
更新完成!"; ?>