Hi there,
Tried a different approach in CC. gives me this error:
Parse error: syntax error, unexpected '{' in ***/connection.php(267) : eval()'d code on line 6
this is my code:
<?php
$air_z1=array('Abu Dhabi', 'Ahmadabad', 'Amman', 'Amsterdam', 'Athens', 'Bahrain', 'Bangalore', 'Bangkok', 'Barcelona' ,'Beijing', 'Beirut', 'Berlin', 'Birmingham', 'Bombay', 'Brussels', 'Budapest', 'Copenhagen', 'Damascus', 'Delhi', 'Dhaka', 'Dhahran', 'Doha', 'Dublin', 'DĂźsseldorf', 'Edinburgh', 'Frankfurt', 'Geneva', 'Glasgow', 'Guangzhou', 'Hamburg', 'Helsinki', 'Hong Kong', 'Islamabad', 'Istanbul', 'Jakarta', 'Jeddah', 'Larnaca', 'Lisbon', 'London (Gatwick)', 'London (Heathrow)', 'Karachi', 'Kuala', 'Lumpur', 'Kuwait City', 'Lahore', 'Madrid', 'Malta', 'Manchester', 'Manila', 'Milan', 'Moscow', 'Mumbai', 'Munich', 'Muscat', 'Newcastle', 'Nice', 'Oslo', 'Paris', 'Prague', 'Riyadh', 'Rome', 'Sanaa', 'Shanghai', 'Singapore', 'Stockholm', 'St Petersburg', 'Venice', 'Vienna', 'Warsaw', 'Zurich');
$air_z2 = array('Atlanta', 'Auckland', 'Boston', 'Brisbane', 'Colombo', 'Chicago', 'Christchurch', 'Dallas', 'Detroit', 'Houston', 'Kansas City', 'Los Angeles', 'Melbourne', 'Memphis', 'Miami', 'Montreal', 'New Orleans', 'New York', 'Perth', 'Phoenix', 'San Francisco', 'Seattle', 'Seoul', 'Sydney', 'Tokyo', 'Toronto', 'Vancouver (BC)', 'Wellington');
if ( in_array($MyRow->aod, $air_z1 ){
echo 'ZONE 1'
} else {
echo 'ZONE 2'}
?>
any ideas?
michael