北辰辰
2015-08-19 09:48
采纳率: 100%
浏览 2.4k

php 数据写入mysql问题

*****连接数据库*******
数据库连接成功!!

Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in D:\PHPnow-1.5.6.1428396605\htdocs\zhangxiaojiao\register_1.php on line 19

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in D:\PHPnow-1.5.6.1428396605\htdocs\zhangxiaojiao\register_1.php on line 19

数据库都显示连接成功了,这是什么问题?
错误代码
$sql="insert into userinfo values('$name','$password1','$photourl')";

$result=mysql_query($sql);

10条回答 默认 最新

相关推荐 更多相似问题