c_ta_save.php
资源名称:BBWPS.rar [点击查看]
上传用户:yttaitong
上传日期:2009-05-10
资源大小:128k
文件大小:1k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
PHP
- <?php
- /*
- [BBWPS!] (C)2006-2010 小蜜蜂版权所有.
- This is NOT a freeware, use is subject to license terms
- 时间:2007年12月
- 描述:城市排序
- */
- error_reporting(0);
- require("../../config.php");
- require("../../class/mysql_class.php");
- $db= new DB($hostname,$username,$password,$database);
- $seq = $_POST['sortid'];
- $cid = $_POST['sid'];
- for($i=0;$i<=count($cid);$i++){
- $sql = "update ".$prefix."city set seq='".$seq[$i]."' where cid='".$cid[$i]."'";
- $db->query($sql,1);
- }
- echo "<script language='javascript'>";
- echo "window.alert('提交成功!');";
- echo "</script>";
- echo "<meta http-equiv="refresh" content="0;url=c_taxis.php">";
- $db->close();
- ?>