首頁 >資料庫 >mysql教程 >php 数据写入mysql问题

php 数据写入mysql问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原創
2016-06-06 09:39:01993瀏覽

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

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn