doxn43207 2014-08-20 09:11
浏览 22

尝试使用MySQL Update时出现令人沮丧的错误

Really quick but frustrating issue that I cannot seem to figure out!

I have a MySQL Query like this:

mysqli_query($con,"UPDATE jobs SET first_name = 'Borge' WHERE jobno='12313'");

And that works but as soon as I try and do this to put the actual values in it doesn't work.

mysqli_query($con,"UPDATE jobs SET first_name = '$first_name' WHERE jobno='$jobno'");

If someone could help me out that would be awesome!

  • 写回答

1条回答 默认 最新

  • duanchanguo7603 2014-08-20 09:19
    关注
    mysqli_query($con,"UPDATE jobs SET first_name = '$first_name' WHERE jobno=$jobno");
    

    please try this query it will help you and also add mysql_error(); at the end of your query it will help you to figure out the issue.

    评论

报告相同问题?

悬赏问题

  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测