refinded query

This commit is contained in:
Thies Mueller 2021-01-10 15:00:17 +01:00
parent 801768e85f
commit e3ab5183cb

View File

@ -28,10 +28,10 @@ if($_SESSION['isadmin'] == 0) {
} }
echo '<div class="alert alert-danger" role="alert">heres the admin world</div>'; echo '<div class="alert alert-danger" role="alert">heres the admin world</div>';
$conn = new mysqli($mysqlhost, $dbuser, $dbpass, $dbname);
// Run the query. // Run the query.
$result = $pdo->query("SELECT * FROM table LIMIT 10"); $result = $conn->query("SELECT * FROM users; LIMIT 10");
// Get the result in to a more usable format. // Get the result in to a more usable format.
$query = array(); $query = array();