$stm = mysqli_stmt_init($conn);
$num = 123456;
if(!mysqli_stmt_prepare($stm,"insert into test.abc (a_column) values (?) "))
exit('Prepare failed');
mysqli_stmt_bind_param($stm,"s",$num);
mysqli_stmt_execute($stm);
" a_column"是bigint类型。
我在bind_param" s"中的类型错误我希望这会失败
但为什么这仍然有用?
任何帮助都会受到赞赏。谢谢