All pastes #63370 Raw Edit

Anonymous

public text v1 · immutable
#63370 ·published 2006-06-09 17:17 UTC
rendered paste body
function customerdb_getcountrycodes(){
	$sql = "SELECT code FROM countrycodes ORDER BY code";
	$results = $db->getCol($sql);
if(DB::IsError($results)) {
$results = null;
}
if (isset($results)) {
foreach($results as $result) {
if (checkRange($result)){
$country[] = $result;
}
}
}
if (isset($country)) {
sort($country); // hmm, should be sorted already
return $counrty;
}
else {
return null;
}
}