<?php
$query = mysql_query("SELECT `uid`,`name` FROM `location`");
while($result = mysql_fetch_assoc($query)) {
list($location_id, $location_name) = $result;
?>
<option value="contactLocation.php?view_id=<?php echo $location_id; ?>"><?php echo $location_name; ?></option>
<?php
}
?>
Can someone help me and tell me why this isn't working? I'm trying to put the uid and name columns into those two variables in the list.