php连接mysql时出现以下问题时怎么办?
Not Found The requested URL /workspaces/Test/ww/function.mysql-connect was not found on this server. Apache/2.2.8 (Win32) PHP/5.2.6 Server at localhost Port 80
Not Found The requested URL /workspaces/Test/ww/function.mysql-connect was not found on this server. Apache/2.2.8 (Win32) PHP/5.2.6 Server at localhost Port 80
答案:mysql-connect这个函数写错了,PHP所有方法单词之间都是下划线“_”而不是“-”。"-"在程序里是减法运算符。应该是mysql_connect();
其他:mysql-connect 这个函数有没有写错???
是mysql_connect()吧?下划线哦 没有找到文件
上一个:php网页到底哪里错了?
下一个:有经验的php程序员进!