This code returns several values for the database:
while($TiV = $frm_interesse->fetch()){
echo $TiV['CODIGO'];
}
... and I need to send these values via email with PHPMailer
. I need some help to get to the following result:
You viewed the property with code 1234
You viewed the property with code 5678
You have viewed the property with code 9012
You have viewed the property with code 3456
How could I for example put these values inside a variable separated by a space and then give an explode and do what you want of them?