Hi, thanks for your reply. Actually what is happening that when press the Search button, it shows the results like ?catid=35 or ?letter=9 etc, instead of actual Names of the category from the database.
I am copying few codes from a file named Showlist.php. It is a very long file but there are some codes.
if ($_GET[act]=="search")
{
$template->assign_block_vars(‘directory.list_cat’, array(
‘NAME’ => “$SiteLang[SearchResult]”,
‘URL’ => “”));
$template->assign_block_vars(‘directory.txt’, array(
‘TEXT’ => $SiteLang[‘SearchNo’]));
}
if (is_numeric($_GET[cat_id])) {
$CatSQL = @mysql_fetch_array(@mysql_query("SELECT * FROM ".$TablePre."category WHERE id=".$_GET['cat_id']));
if ($CatSQL['cat_sub_id']>0) {
$CatSubSQL = @mysql_fetch_array(@mysql_query("SELECT * FROM ".$TablePre."category WHERE id=".$CatSQL['cat_sub_id']));
$template->assign_block_vars('directory.list_cat', array(
'NAME' => "$CatSubSQL[cat_name]:",
'URL' => "href="index.php?cat_id=".$CatSubSQL[id]."""));
}
$template->assign_block_vars('directory.list_cat', array(
'NAME' => "$CatSQL[cat_name]",
'URL' => "href="index.php?cat_id=".$CatSQL[id]."""));
$template->assign_block_vars('directory.txt', array(
'TEXT' => $SiteLang['CathNo']));
[/code]