Getting this error and not sure what's going on. New to using mysqli.
$query = 'SELECT name, email FROM US__users WHERE state="' . $state . '" ORDER BY zip ASC LIMIT 5';
$result = $mysqli->query($query);
while ($row = $result->fetch_array()) {
print ($row['name'] . ' ' . $row['email']);
}
$result->free();
There's currently only one row in MySQL DB. However, when I copy the $query and run it at the mysql command prompt, it queries fine and displays one result.