Try using this part of your code:
$bind = mysqli_stmt_bind_param($statement, "siss", $name, $age, $email, $password);
$execute = $bind->mysqli_stmt_execute($bind);
if(count($execute) > 0){
$response["success"] = 1;
} else{
$response["success"] = 0;
}
echo json_encode($response);
count - counting the rows in your database.
user6690322
source
share