主题:php连接mysql问题
我的建站:winxp+php+apach+mysql
程序:
$aDBLink = mysql_connect($hostname,$hostuser,$hostpassword) or die ("database connect false");
if (!empty($aDBLink)) {
phpinfo();
if (mysql_select_db("dn_kit",$aDBLink) = True )
{
}
}
错误提示:
Fatal error: Can't use function return value in write context in D:\webserver\www\kit\index.php on line 20
请教高手:是什么原因?,怎样解决?
程序:
$aDBLink = mysql_connect($hostname,$hostuser,$hostpassword) or die ("database connect false");
if (!empty($aDBLink)) {
phpinfo();
if (mysql_select_db("dn_kit",$aDBLink) = True )
{
}
}
错误提示:
Fatal error: Can't use function return value in write context in D:\webserver\www\kit\index.php on line 20
请教高手:是什么原因?,怎样解决?