当前位置:Gxlcms > mysql > php数据写入mysql问题

php数据写入mysql问题

时间:2021-07-01 10:21:17 帮助过:43人阅读

mysqlphp

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

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);

人气教程排行