mysql select single column as single dimension array in PHP
问题 I'm selecting a single column from my mysql database: $savedSQL = 'SELECT can_id FROM savedsearches WHERE user_id = "'.mysql_real_escape_string($user_id).'" AND insertTime >= "'.$lastSigTime.'"'; $savedQuery = mysql_query($savedSQL); And I'd like to return the values as a single dimension, enumerated array such that array[0] = row1, array[1] = row2, etc. When I put it into an array like this: while($savedResult = mysql_fetch_array($savedQuery)) { $savedArray[] = $savedResult; } It returns it