I have table "prenotazioni"
id_prenotazione
id_user
data
seat
I would want to also send the message to the consumer that has compiled, but the email of the user is in table "utenti" field "email" ,as I do to connect the varying ID_UTENTE (table prenotazioni) with EMAIL (table utenti)
[codebox]$email="admin@alice.it";
$message="";
$subject="Nuova Prenotazione Ristorante";
foreach($values as $field=>$value)
$message.= $field." : ".$value."\r\n";
mail($email, $subject, $message);[/codebox]
This code send email only to admin, powers to implement it here?
Best Regards