Home >Backend Development >PHP Tutorial >php操作mysql这句错在那里了呢?解决思路

php操作mysql这句错在那里了呢?解决思路

WBOY
WBOYOriginal
2016-06-13 11:05:51759browse

php操作mysql这句错在那里了呢?

    $cmd = 'UPDATE appdata SET sData ="'.$_post["u_content"].'"'.'WHERE User ="'.$_post["u_email"].'"';<br />    $data = mysql_query($cmd) or die("失败了!");


不用post是正确的可以修改,但是用post就出错了,该怎么改呢?谢谢~
------解决方案--------------------
$_POST 要大写

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