MYSQLI::prepare() , error when used placeholder :something

后端 未结 1 501
予麋鹿
予麋鹿 2020-12-20 10:03

hi im using mysqli and i saw some examples using placeholder like :something and ?

when i used ? its working, but when i used :something in query like this

相关标签:
1条回答
  • 2020-12-20 10:52

    mysqli does not support named placeholders.

    PDO does, using either bindParam or execute.

    (Careful, you can only use a named placeholder once per query. They aren't too incredibly useful.)

    0 讨论(0)
提交回复
热议问题