Home > Backend Development > PHP Tutorial > PHP + MYSQL 留言板 有关问题

PHP + MYSQL 留言板 有关问题

WBOY
Release: 2016-06-13 12:57:55
Original
765 people have browsed it

PHP + MYSQL 留言板 问题

点击留言,现在先会出现留言的内容,数据库连接也成功,为什么存不到数据库里面。
------解决方案--------------------
$username=$_POST['user']; 都写到query的下面去了。当然只能插入空值了。写到前面就好了。

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