the following code would always return false
<?php
require "connectDB.php";
$query = "SELECT * FROM useraccout WHERE 1";
$rows = $db->query($query);
By false I believe it means that there is something wrong with the statement (can't find what exactly is wrong)
connectDB.php
<?php
$USERNAME = "root";
$PASSWORD = "";
$DB_NAME = "db";
$SERVER = "localhost";
$db = mysqli_connect($SERVER, $USERNAME, $PASSWORD, $DB_NAME);