<?php
ini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(-1);

	include("connect.php");
?>
<html>
 <head>
 </head>
 <body>
<?php
	$query = "SELECT * FROM userinfo";
	$stmt = $mysqli->prepare($query);
	$stmt->execute();
	$stmt->bind_result($userid, $num, $test1, $response1, $test2, $response2, $pass);

	while ($stmt->fetch()) {
		echo "$userid,$num,$test1,$response1,$test2,$response2,$pass"."<br>";
	}

	$stmt->close();
	$mysqli->close();
?>
 </body>
</html>
