php连接sql失败 sqlphpsql服务器数据库 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你用的是微软Microsoft SQL却用mysqli去连接能连接上就见鬼了mssql_connect 小弟刚学php,很多都不懂的。麻烦大神再帮我看看,我改了之后还是错。 $dbc = mysql_connect('localhost','tom', '123123', 'aliendatabase') or die('Error connecting to MySQL server.'); $query = "INSERT INTO aliens_abduction (first_name, last_name, when_it_happened, how_long, " . "how_many, alien_description, what_they_did, fang_spotted, other, email) " . "VALUES ('$first_name', '$last_name', '$when_it_happened', '$how_long', '$how_many', " . "'$alien_description', '$what_they_did', '$fang_spotted', '$other', '$email')"; $result = mysql_query($dbc, $query) or die('Error querying database.'); mysql_close($dbc);Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'localhost' (10061) in E:\Learing\phpWeb\aliens\report.php on line 22Error connecting to MySQL server. 打开链接总提示 下载源文件 怎么用php编写一个像windows的回收站呢? 请教一段数据库联合嵌套查询语句 PHP连接mysql数据库没反应,怎么回事? MYSql查询的时候如可将一个不是唯一的字段的各个值统计出来,在一行显示。(因为要做排序)请教SQL语句用得好的。谢谢 为玉树默哀,网页如何改成黑白的 [深圳/東莞 | 求職] PHP或ASP程序員 急急急!求一html在线编辑器!有的请进. 我的PHP的程序页面占资源比较重? 怎么是乱码。收邮件问题。谢谢大家了。 想用PHP抓取某网站库存数据 php中一个成员权限困惑
mssql_connect
$dbc = mysql_connect('localhost','tom', '123123', 'aliendatabase')
or die('Error connecting to MySQL server.');
$query = "INSERT INTO aliens_abduction (first_name, last_name, when_it_happened, how_long, " .
"how_many, alien_description, what_they_did, fang_spotted, other, email) " .
"VALUES ('$first_name', '$last_name', '$when_it_happened', '$how_long', '$how_many', " .
"'$alien_description', '$what_they_did', '$fang_spotted', '$other', '$email')";
$result = mysql_query($dbc, $query)
or die('Error querying database.');
mysql_close($dbc);Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'localhost' (10061) in E:\Learing\phpWeb\aliens\report.php on line 22
Error connecting to MySQL server.