Assuming the identifier column is just named id, try the following code (DB cell code for clarification):
$ ids_array = array ();
$ result = mysql_query ("SELECT id FROM table_name");
while ($ row = mysql_fetch_array ($ result))
{
$ ids_array [] = $ row ['id'];
}
If you want to sort identifiers in ascending or descending order, simply add ORDER BY id ASCor ORDER BY id DESCrespectively to the end of the MySQL query
, , . $row - , id, (SELECT id FROM ...). $ids_array[] , ($ids_array, $row['id'] ( ), .
while print_r($ids_array);, , .