我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

错误的SQL语法? [重复]

This question already has an answer here:

  • How to insert into MySQLusing a prepared statement with PHP [duplicate] 1 answer

I'm getting the following error:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' DStormr', 'ddo.png', 'Online:' at line 1`

The sql is the following:

"UPDATE articulo SET '".$nombre."', '".$imagen."', '".$text."', '".$precio."', '".$popup."', ".$genero_id.
" WHERE id=".$id"";

What am I missing/not seeing?

</div>

When you do an UPDATE you need to SET key = 'value'.

近期文章

  • 如果在PHP上的Array中[关闭]
  • 高级会话脚本[关闭]
  • 选择所有行但只有一个[关闭]
  • 从URL PHP [重复]中获取关键字
  • 使用php mysql标记系统[关闭]
  • jQuery视频和图像库[关闭]
  • mysql从多个表中搜索数据
  • PHP:如何设置会话输出样式[关闭]
  • 我的PHP注册表不起作用
  • 为什么PHP 5.3.10(fcgi)会阻塞这一行? [关闭]
  • php添加计数器与千位分隔符[关闭]
  • 从c#更改3行代码到php [关闭]
  • 如何在我的注册表格中添加新字段[关闭]
  • 警告:mysqli_query()期望参数1为mysqli [关闭]
  • php日期更改为12小时格式并添加gmt +3 [关闭]
  • 从Web窗体创建代码片段(易于剪切和粘贴)[关闭]
  • 可以为PHP中的所有函数放置一个Try Catch块[关闭]
  • 如何开始wamp?
  • JSON请求限制
  • 适当的http状态代码

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华