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

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

WBOY
Release: 2016-06-13 11:05:51
Original
758 people have browsed it

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

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


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

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