Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/231.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何向MySQL查询添加其他文本/字符(:/,<;,=,等等)?_Php_Mysql - Fatal编程技术网

Php 如何向MySQL查询添加其他文本/字符(:/,<;,=,等等)?

Php 如何向MySQL查询添加其他文本/字符(:/,<;,=,等等)?,php,mysql,Php,Mysql,如何向MySQL查询中添加内容(:/,至少,使用 更好的是,使用参数化查询。.mysql\u real\u escape\u string($add\u something)。mysql\u real\u escape\u string仅供参考:您的问题不是://或 .mysql_real_escape_string($add_something). mysql_query("INSERT INTO user_new_post (user_full_name, user_new_post, u

如何向MySQL查询中添加内容(:/,至少,使用


更好的是,使用参数化查询。

.mysql\u real\u escape\u string($add\u something)。mysql\u real\u escape\u string仅供参考:您的问题不是
://

.mysql_real_escape_string($add_something).
mysql_query("INSERT INTO user_new_post (user_full_name, user_new_post, user_username, user_date_post)
VALUES ('Peter Allport', 'Check ittt outtt:" . mysql_real_escape_string($add_something)  . "', 'peteca', '" . date("mjYgi") . "')");
.mysql_real_escape_string($add_something).