This is my code for login:
<?php
$con = mysqli_connect("localhost", "id2815222_b1gbrother", "orwell", "id2815222_database");
$studentno = $_POST["studentno"];
$password = $_POST["password"];
$statement = mysqli_prepare($con, "SELECT * FROM bigbrother WHERE studentno = ? AND password = ?");
mysqli_stmt_bind_param($statement, "is", $studentno, $password);
mysqli_stmt_execute($statement);
mysqli_stmt_store_result($statement);
mysqli_stmt_bind_result($statement, $userID, $studentno, $firstname, $middlename, $lastname, $date, $password, $number);
$response = array();
$response["success"] = false;  
while(mysqli_stmt_fetch($statement)){
    $response["success"] = true;  
}
echo json_encode($response);
?>
last night this was running perfectly then this afternoon it shows this errors:
Warning: mysqli_stmt_execute(): Premature end of data (mysqlnd_wireprotocol.c:1130) in /storage/ssd3/222/2815222/public_html/login2.php on line 9
Warning: mysqli_stmt_execute(): RSET_HEADER packet 4 bytes shorter than expected in /storage/ssd3/222/2815222/public_html/login2.php on line 9
Warning: mysqli_stmt_execute(): Error reading result set's header in /storage/ssd3/222/2815222/public_html/login2.php on line 9 {"success":false}
My database has: user id, firstname, middlename, lastname, date, password, number as columns. thanks
