0
I’m making an availability notification system (let me know) but I’m having difficulties in logic to make the iteration on LOOP grouping the results by "email" to trigger separately.
CONSULTATION
SELECT * FROM TAB_SITE_NOTIFICA WHERE INFORMADO='N';
ARRAY
$emails_de_envio[] = $row_notifica['DESCRICAO']."__". $row_notifica_venda['EAN']."__". $row_notifica_venda['EMAIL'];
LOOP
foreach ($emails_de_envio as $key => $value) {
$SliceEmail= explode('__', $emails_de_envio[$key]);
echo$SliceEmail[0]." - ";
echo$SliceEmail[1]." - ";
echo$SliceEmail[2]."<br>";
}
PRINTS
PRODUTO 1 - 7899655052303 - [email protected]
PRODUTO 2 - 7899658322236 - [email protected]
PRODUTO 3 - 7899658376512 - [email protected]
PRODUTO 4 - 7899658342289 - [email protected]
PRODUTO 5 - 7896042066189- [email protected]
NEED TO SEPARATE AND SHOOT EACH EMAIL YOUR RESULT
PRODUTO 1 - 7899655052303 - [email protected]
PRODUTO 2 - 7899658322236 - [email protected]
PRODUTO 3 - 7899658376512 - [email protected]
________________________________________________________
PRODUTO 4 - 7899658342289 - [email protected]
PRODUTO 5 - 7896042066189- [email protected]
GUNSHOT
$return = sendEmail( TO, SITE, 'EMAILS PARA DISPARAR' , HOST, '[' . SITE . '] ' . $subject, $content);