PHP bind_params with null

后端 未结 2 1017
不知归路
不知归路 2021-01-12 09:52

I am trying to bind params to a INSERT INTO MySQLi prepared statement if that variable exists, otherwise insert null.

This is what I have, but it is not working:

2条回答
  •  囚心锁ツ
    2021-01-12 10:44

    Keep in mind that you can't use bind_param twice, because the last statement will replace the first. Try to find a way to use bind_param just once.

提交回复
热议问题