mysql_fetch_array will give me an array of a fetched row. What\'s the best way generate an array from the values of all rows in one column?
mysql_fetch_array
$result = mysql_query("SELECT columnname FROM table WHERE x=y"); $columnValues = Array(); while ( $row = mysql_fetch_assoc($result) ) { $columnValues[] = $row['columnname']; }