Only 1 parameter is needed in fetch assoc but I'm checking to see if the username is found and it gives me an error because it only expects one parameter.
function user_exists($username) {
$connection = mysqli_connect("localhost","root","","c3392262");
$username = sanitize($username);
$query = mysqli_query($connection,"SELECT COUNT(`user_id`) FROM 'users' WHERE `username` = '$username'");
return (mysqli_fetch_assoc($query, 0) == 1) ? true : false;
}