0
I have the following problem:
A user performs a step of an X test, when he clicks to get the first result I need to create 9 e-mail messages to be sent to the 3-day logo, morning (7:00), afternoon (13:00) and night (21:00). The question is how can I define the 3 times? The dates I already got.
My schedule table has the following structure:
CREATE TABLE maas_emails_agendados (
email_id int(11) NOT NULL auto_increment,
email_destinatario_nome varchar(255) default NULL,
email_destinatario varchar(255) default NULL,
email_assunto varchar(255) default NULL,
email_mensagem text,
email_agendamento datetime default NULL,
cliente_id int(11) default NULL,
PRIMARY KEY (email_id)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
In short, it could be more specific, what is the real problem ? You implemented some code, if yes, post it.
– sNniffer
What is the difficulty? Implementation or logic? If they are fixed times, only make one
for
on days and insert in 3 times.– Don't Panic
There’s no better way than using one
for
within another?– Helison Santos