Hi All
Just trying to get this to work with limited coding knowledge.
With the coding as shown, no errors are reported, but only the second query correctly sends an email in this coding.
Delete the second query, (in red text) no errors are reported and the first query send the emails
Details:
3 Lists - calendar, steward and adminemail
The calendar form has 4 databasejoin elements, 3 from stewards, steward1, steward2 and steward3 and one from adminemail, allocation.
All four are set to dropdown.
Any help in correcting the code would be appreciated
$db =& JFactory::getDBO();
$query = $db->getQuery(true);
$query = "SELECT `email` FROM `steward` WHERE `id` IN ('{calendar___steward1_raw}','{calendar___steward2_raw}','{calendar___steward3_raw}')";
$db->setQuery($query);
$results = $db->loadColumn();
$query = "SELECT `autoemail` FROM `adminemail` WHERE `id` IN ('{calendar___allocation_raw}')";
$db->setQuery($query);
$results = $db->loadColumn();
$email_list = implode(',',$results);
return $email_list;
Steve
Just trying to get this to work with limited coding knowledge.
With the coding as shown, no errors are reported, but only the second query correctly sends an email in this coding.
Delete the second query, (in red text) no errors are reported and the first query send the emails
Details:
3 Lists - calendar, steward and adminemail
The calendar form has 4 databasejoin elements, 3 from stewards, steward1, steward2 and steward3 and one from adminemail, allocation.
All four are set to dropdown.
Any help in correcting the code would be appreciated
$db =& JFactory::getDBO();
$query = $db->getQuery(true);
$query = "SELECT `email` FROM `steward` WHERE `id` IN ('{calendar___steward1_raw}','{calendar___steward2_raw}','{calendar___steward3_raw}')";
$db->setQuery($query);
$results = $db->loadColumn();
$query = "SELECT `autoemail` FROM `adminemail` WHERE `id` IN ('{calendar___allocation_raw}')";
$db->setQuery($query);
$results = $db->loadColumn();
$email_list = implode(',',$results);
return $email_list;
Steve