I'm sorry, this is the code.
$query = "SELECT assignTable FROM EXHIBITORS WHERE year = $newYear";
$result = $mysqli->query($query) or die("There was a problem with the query: " . mysqli_error($mysqli));
if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) {$myResults[] = $row; }
}
$myVals = array_column($myResults, 'assignTable');
echo '<pre>';
print_r($myVals);
echo '</pre>';
I've been asked to alter some code of a guy that left the company.