The-Ensemble
06-01-2008, 01:11 AM
I'd of written a more descriptive title if I knew what was wrong.
I'm trying to list information from a table and to do it I first printed a template then underneath that in the plugin I wrote.
while ($category = mysql_fetch_assoc($result)) {
$categoryname = $category['name'];
$catid = $category['id'];
$catdesc = $category['description'];
eval('$cats .= "' . fetch_template('extra_categoriesbit') . '";');
}
And it returns blank, I know its not the database or the while thats the problem, because before I did it echo'ing the html and the variables and it worked fine.
I added eval for the template, and put $cats in the first printed template for where I wanted these results to go and they don't show up and I don't get why. Its probably something stupid I'm overlooking.
Any ideas?
EDIT--Oh and I know its not the template name, I've checked that around 4 times now.
I'm trying to list information from a table and to do it I first printed a template then underneath that in the plugin I wrote.
while ($category = mysql_fetch_assoc($result)) {
$categoryname = $category['name'];
$catid = $category['id'];
$catdesc = $category['description'];
eval('$cats .= "' . fetch_template('extra_categoriesbit') . '";');
}
And it returns blank, I know its not the database or the while thats the problem, because before I did it echo'ing the html and the variables and it worked fine.
I added eval for the template, and put $cats in the first printed template for where I wanted these results to go and they don't show up and I don't get why. Its probably something stupid I'm overlooking.
Any ideas?
EDIT--Oh and I know its not the template name, I've checked that around 4 times now.