How use the insert query using parameters?

前端 未结 5 2011
猫巷女王i
猫巷女王i 2020-12-19 15:42

When i try with this query i get an error says that Perameter email doesn\'t exist, i am sure that the variables : email, login_pass, payment_method,operateur are valid and

5条回答
  •  一整个雨季
    2020-12-19 16:22

    You don't usually quote parameters, only literals. So instead of:

    VALUES (":email",":login_pass",":payment_method",":avecpuce")
    

    Try:

    VALUES (:email,:login_pass,:payment_method,:avecpuce)
    

提交回复
热议问题