开发者

PHP MySQLi Stmt Prepare

开发者 https://www.devze.com 2023-01-22 23:02 出处:网络
How would I mysqli::stmt->bind_param something that\'s considered as NULL in mysql? I\'m currently using

How would I mysqli::stmt->bind_param something that's considered as NULL in mysql?

I'm currently using

$开发者_运维技巧stmt->bind_param('s', 'NULL');


bind_param passes variable as reference.

Try:

$null = NULL;
$stmt->bind_param('s', $null);
0

精彩评论

暂无评论...
验证码 换一张
取 消