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

PHP + MYSQL 留言板 有关问题

WBOY
WBOYOriginal
2016-06-13 11:08:35842browse

PHP + MYSQL 留言板 问题

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

Statement:
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