- Added some scripts to help debugging
This commit is contained in:
44
server/getalluserdata.php
Normal file
44
server/getalluserdata.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
ini_set('display_errors', 1);
|
||||
ini_set('display_startup_errors', 1);
|
||||
error_reporting(E_ALL);
|
||||
|
||||
class MiBD extends SQLite3
|
||||
{
|
||||
function __construct()
|
||||
{
|
||||
$this->open('../bd/jailgames.db');
|
||||
}
|
||||
}
|
||||
|
||||
$bd = new MiBD();
|
||||
|
||||
$query = "SELECT * FROM userdata";
|
||||
$resultado = $bd->query($query);
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>ÍCARO</title>
|
||||
<meta http-equiv="Cache-Control" content="no-cache ,must-revalidate" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<table>
|
||||
<tr><th>game</th><th>user</th><th>data</th></tr>
|
||||
<?php
|
||||
$fila = $resultado->fetchArray(SQLITE3_ASSOC);
|
||||
while ($fila) {
|
||||
?>
|
||||
<tr>
|
||||
<td><?=$fila['game']?></td>
|
||||
<td><?=$fila['user']?></td>
|
||||
<td><?=$fila['data']?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$fila = $resultado->fetchArray(SQLITE3_ASSOC);
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user