Yup thats exactly what I meant, I have a template called listcat, it has variables, $catagory, $catdesc, and $cattotal, and it has <tr> and stuff, but it doesn't loop, but it loops the database entry only
I will show you a screenshot and the code.
here is the code
PHP Code:
$ebg = $DB_site->query("SELECT igcid, catagory, catdesc FROM vbigallery_cat ORDER BY igcid");
if ($DB_site->num_rows($ebg)) {
while ($vbigallery=$DB_site->fetch_array($ebg)) {
$catagory .= "$vbigallery[catagory]";
$description .= "$vbigallery[catdesc]";
eval("\$catlistbit = \"".gettemplate('vbig_listbit')."\";");
}
}
eval("dooutput(\"".gettemplate('vbig_main')."\");");
If you look at the screenshot you should see that there is no <tr> break, there is only one <tr> </tr> and the content of the table is being repeated within that <tr> but I want the <tr> it self to repeat for each catagory. If you don't get what i am saying, please look at the forum home, all catagories and forums are seperated with a <tr>, the structure of the forum home is like
<tr>
Catagory1
</tr>
<tr>
Catagory2
</tr>
Not like that but very basically that is how it is.
Anyways thanks in advance for your help
-Arunan