Google sees this as duplicate pages.
I want to include the category name on the page title.
I put this code in links.php
- Code: Select all
if ( isset($HTTP_POST_VARS['cat']) || isset($HTTP_GET_VARS['cat']) ){$sql = "SELECT cat_title, cat_id FROM" . LINK_CATEGORIES_TABLE . "WHERE cat_id =" . $HTTP_GET_VARS['cat']; $result = $db->sql_query($sql); $page_name = $result['cat_title']; $page_title = $lang['Site_links'] . " - " . $pagename;} else { $page_title = $lang['Site_links']; }
just before the line
- Code: Select all
include('includes/page_header.'.$phpEx);
what I get is : my_site_name - Links -
I can easily get it to display the cat_id.
How can I get it to display the "$page_name" using a query