|
|
安装好mysql/apache/php后,phpinfo()可以用,
但下面的脚本会有这样的提示:Fatal error: Call to undefined function: mysql_connect() in ×××
这是为什么,难道这个函数还在声明吗?
<?php
$link = mysql_connect("localhost", "root", "shg8718321")
or die("Could not connect: " . mysql_error());
print ("Connected successfully");
mysql_close($link);
?> |
|