数据库连接//截入mysql操作类require_once ('mysql.class.php');//数据库分配define("host","localhost"); //主要名define("user","root"); //用户名define("pwd","123456"); //密码define("dbname","qz"); //数据库名$mysql = new MySQL(host,user,pwd,dbname);@mysql_query("set names 'utf8'");PHP操作APIheader('Content-type: text/html; charset=utf8');$sel=require 'db.php'; //数据库@mysql_query("set names 'utf8'");date_default_timezone_set('Asia/Shanghai');$time=date('Y-m-d H:i:s',time());//软件以GET方式返回以下几个参数$us=htmlspecialchars($_GET['us'],ENT_NOQUOTES);//访问用户名$pw=htmlspecialchars($_GET['pw'],ENT_NOQUOTES);//访问密码$out_trade_no=htmlspecialchars($_
...
继续阅读
(27)