If i create an array from results returned in a mysqli query is there a way to select and use only one specific row from the array?
$info= array();
while($row = mysqli_fetch_assoc($query)) {
$info[] = array(
'id' => $row['id'],
'location' => $row['location']
);
}
How would i go about displaying only a single row from this array where the id equals a variable like $id?