How to resolve 'cannot pass parameter by reference' error in PHP?

前端 未结 2 1395
醉梦人生
醉梦人生 2020-12-11 02:10

Here\'s my code:

$stmt = $conn->mysqli->prepare(\'INSERT INTO photos (CaseNo, ImageName, CaptureTime, UploadTime) VALUES (?,?,?,?)\');
$stmt->bind_p         


        
2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-11 02:49

    Maybe you need to cast it to string?

    ...$extension, (string) $captureTime, (string) $uploadTime);
    

提交回复
热议问题