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

织梦如何写sql插入

WBOY
Release: 2016-06-13 11:57:12
Original
974 people have browsed it

织梦怎么写sql插入

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


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

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