Hi everyone,
I am currently working on some code that will add
<meta name="ROBOTS" content="NOINDEX,FOLLOW">
on linked product pages.
in the html_header.php file I have added:
where meta_noindex.php is:PHP Code:<?php
include('includes/meta_noindex.php');
?>
only problem is that having the code in the html_header there is no reference to the variables:PHP Code:$check_linked = mysql_query('SELECT master_categories_id from products WHERE products_id = '.$prod_id.'');
$check_result_row = mysql_fetch_row($check_linked);
$catid = $check_result_row[0];
if ( $catid == $current_category_id ) {
} else {
$meta = '<meta name="ROBOTS" content="NOINDEX,FOLLOW">';
echo $meta;
}
$prod_id
$current_category_id
Can anyone advise what I could do to get this to work??
Cheers
Phil




