Home  >  Article  >  Backend Development  >  织梦如何写sql插入

织梦如何写sql插入

WBOY
WBOYOriginal
2016-06-13 11:57:12956browse

织梦怎么写sql插入

 {dede:php}<br />    $sql = "INSERT INTO dede_diyform1(lianxiwomen,xingming,age) VALUES ("11","11","11")";<br />    $dsql->ExecuteNoneQuery($sql); //执行这个插入语句<br />    {/dede:php}


这个我网上找的代码没插入哈          sql语句是对的
------解决方案--------------------
你确定sql语句是对的?
都是双引号又没转义
$sql = "INSERT INTO dede_diyform1(lianxiwomen,xingming,age) VALUES (\"11\",\"11\",\"11\")";
这样才对

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