I'm trying to get this statement to select all of the column called "Roles" where Status = 0. With the code I have it is only picking the first one with status = 0. I feel stupid asking but how could I select all roles where status = 0? Current Code:
$sql_query="SELECT Role FROM roles Where Status=0";
$result = mysqli_query($dbconfig,$sql_query);
$input = mysqli_fetch_array($result);
$role = array_rand($input, 2);
echo "<br>";
echo "You are are a ".$input[$role[1]] . "
";
Note: $dbconfig is coming from a required file in a different location.