using nulls in a mysqli prepared statement

后端 未结 5 2221
谎友^
谎友^ 2020-11-29 10:09

In a mysqli prepared statement, a NULL gets turned into \'\' (in the case of a string) or 0 (in the case of an integer). I would like to store it as a true NULL. Is there a

5条回答
  •  佛祖请我去吃肉
    2020-11-29 10:54

    by my side, i store every parameters in an array and pass them in Bind_param function by array_shift($myArray). NULL is accepted like that.. S.

提交回复
热议问题