bind_param() doesn't seem to work

前端 未结 2 1335
日久生厌
日久生厌 2021-01-20 03:36

I have the following code:



        
2条回答
  •  无人及你
    2021-01-20 04:40

    mysqli_stmt_bind_param accepts variables (by reference). You cannot use literals. Change your code to

    $fileSize = 123;
    $stmt->bind_param('ssi', $string1, $string2, $fileSize);
    

提交回复
热议问题