I would like to ask some help and ideas on how to implement a loop inside the template. I can do foearch below but how can i include it to the template and show it in the re
Your PHP code:
$htmldata ="";
($results as $row) {
$name = $row['name'];
$address = $row['address'];
$htmldata .="
Hello William!
The time is: 03/10/04
Embedded PHP works too!
".$name."
".$address."
";
}
Then in your template design.html, you will pass the $htmltable variable and embedd there:
#title#
Hello #name#!
The time is: #datetime#
echo "Embedded PHP works too!
"; ?>