[英]PHP MySQLi Stmt Prepare
How would I mysqli::stmt->bind_param
something that's considered as NULL
in mysql? 我将如何在
mysqli::stmt->bind_param
中将某些东西视为mysql中的NULL
?
I'm currently using 我目前正在使用
$stmt->bind_param('s', 'NULL');
bind_param passes variable as reference. bind_param传递变量作为参考。
Try: 尝试:
$null = NULL;
$stmt->bind_param('s', $null);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.