thanks for reply Lynne but i still dunno what is exactly your point and this is a point i'm not really got it
so, i'm going to put something in while loop like
Code:
// ##### Initialize categories connection ####
$category = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "testing order by name DESC");
while ($categories = $db->fetch_array($category))
// initialize each item
{
$name = $categories['name'];
$des = $categories['des'];
}
$db->free_result($category);
and the code line in template
{vb:raw categories.name}
do i have register the varialbe ($name, $des) for template?
--------------- Added [DATE]1273540800[/DATE] at [TIME]1273540800[/TIME] ---------------
and i tried to register them under $categories :
Code:
// ###### NOW YOUR TEMPLATE IS BEING RENDERED ######
$templater = vB_Template::create('TEST');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('pagetitle', $pagetitle);
$templater->register('categories', $categories);
$templater->register('categories', $name);
$templater->register('categories', $des);
print_output($templater->render());
it shows the first letter of the first item in database only
the first item name: testing 1
it shows "t" only