catalog/admin/includes/functions/general.php 1 location
|
@@ 646-649 (lines=4) @@
|
| 643 |
|
'text' => $default); |
| 644 |
|
} |
| 645 |
|
$countries_query = tep_db_query("select countries_id, countries_name from " . TABLE_COUNTRIES . " order by countries_name"); |
| 646 |
|
while ($countries = tep_db_fetch_array($countries_query)) { |
| 647 |
|
$countries_array[] = array('id' => $countries['countries_id'], |
| 648 |
|
'text' => $countries['countries_name']); |
| 649 |
|
} |
| 650 |
|
|
| 651 |
|
return $countries_array; |
| 652 |
|
} |
catalog/includes/functions/general.php 1 location
|
@@ 206-209 (lines=4) @@
|
| 203 |
|
} |
| 204 |
|
} else { |
| 205 |
|
$countries = tep_db_query("select countries_id, countries_name from " . TABLE_COUNTRIES . " order by countries_name"); |
| 206 |
|
while ($countries_values = tep_db_fetch_array($countries)) { |
| 207 |
|
$countries_array[] = array('countries_id' => $countries_values['countries_id'], |
| 208 |
|
'countries_name' => $countries_values['countries_name']); |
| 209 |
|
} |
| 210 |
|
} |
| 211 |
|
|
| 212 |
|
return $countries_array; |