when you get the data from db, append it to a variable. eg.
($count stands for the number of data you got from db., $retrieved_from_db is an array that keeps the retrieved data)
for ($i=0;$i<$count; $i++)
{
$compiling_data.=$retrieved_from_db[$i];
}
When this loop ends, you will have all the retrieved data in your variable "$compiling_data". Now you can use this in your template..
|