Call to a member function bind_param() on a non-object (unable to solve despite research)

后端 未结 3 1589
忘掉有多难
忘掉有多难 2020-12-06 20:46
$stmt = $mysqli->prepare(\'select Un from member where Lock = ? and Activated = ?\');
$stmt -> bind_param(\"ss\", \'N\', \'Y\');//This line gave the error
$stm         


        
3条回答
  •  孤城傲影
    2020-12-06 21:12

    $stmt->bind_param("ss", 'N', 'Y');//This line gave the error 
    

    Here you need to sure about data type in database.

提交回复
热议问题