Home > Database > Mysql Tutorial > php 数据写入mysql问题

php 数据写入mysql问题

WBOY
Release: 2016-06-06 09:39:01
Original
966 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template