I am working with joomla and fabrik.
I have a form were depending on the selected country an email is send to different user(s).
This works fine with following code:
[php]
$db =& JFactory::getDBO();$db->setQuery
(“SELECT email FROM location_addresses
WHERE country = ‘{flughafen___select_country}’”);
return $db->loadResult();[/php]
As you see it gets the email from the table: location_addresses. In the email from each country I can put several emailadresses seperated with a , which works fine as well.
But what I WANT does not work: wenn I have the same country several times in the table with different email adresses it only sends the email to the first selected country:
In following case the email only goes to [email protected]
country email
AUSTRIA [email protected]
AUSTRIA [email protected]
I think there must be put an ARRAY in the php code, but I have got no idea how to do this. Can anybody help me with this?
Thank you very much in advance.
Greetings from Austria,
Seven