Why does this SQL UPDATE query not work with a variable for WHERE?

后端 未结 4 1947
悲&欢浪女
悲&欢浪女 2020-12-20 09:40

this is my first post here at Stack Overflow. I know the question has been asked many times before. I went through many answers, tried all of them (except the correct approa

4条回答
  •  隐瞒了意图╮
    2020-12-20 10:15

    The following query can be used:

    UPDATE VideoArchiv SET columnname1 = '".$_POST["titel"]."', columnname2 = '".$_POST["schauspieler"]."' WHERE id=$id
    

提交回复
热议问题