php有专门的sql server操作函数,举个简单的例子,是查询的 serverName = "localhost"; //数据库服务器地址$uid = "root"; //数据库用户名$pwd = "123456"; //数据库密码$connectionInfo = array("UID"=>$uid, 。<?php con = mysql_connect("localhost:3306","root","");if (!$con) { die('Could not connect: ' 。 mysql_error());} mysql_select_db("test", $con);result = mysql_query("SELECT * FROM user");ec。string dsn,string user,string password [,int cursor_
Copyright 2012 - 2021 . 链天下网络科技有限公司