I have a question about the following problem:
I have created two tables.
THE FIRST
id
material
THE SECOND
id
material (gets data from the first table with the Lookup field)
available
fault
I inserted an alert by email when the material reaches 10 pieces or less.
My probema is this:
I would like to include in the email the name of the product, but in Table 2 (using the Lookup Field) I have no name but a number.
Is there a way make it able to see the name of the material and not the number?
Code: Select all
// to compose a message containing the submitted data,
if ($data['Disponibili'] <= '10'){
@mail(
// mail recipient
"[email protected]",
// subject
"ATTENZIONE! Scorta Minima raggiunta per {$data['Apparato']}",
// message
"Ciao {$memberInfo['username']},\n\n".
"Questo materiale ha raggiunto la scorta minima:\n\n".
"{$data['Apparato']}\n".
"Pezzi Disponibili: {$data['Disponibili']}\n\n".
"Per visualizzare il materiale sul DataBase clicca il link seguente:\n".
"http://appgini/table_view.php?SelectedID=$id",
// sender address
"From: [email protected]"
);
}