pronane Posted December 11, 2006 Posted December 11, 2006 i found the following code on another google search from this site, basically i am searching all categories in the DB and putting them into the meta name further down in the html: $metakeyword_string = 'ireland, castlerea, power tools, tools direct, west of ireland, roscommon, cheap tools,'; $categories_query = tep_db_query("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id limit 0,20"); while ($categories = tep_db_fetch_array($categories_query)) { $metakeyword_string .= $categories['categories_name'] . ',';} I was wondering ( because my php skills are limited ), will the above overwrite what i oringinally store in the metakeyword_string or will this line overwrite the keywords hardcoded in: $metakeyword_string .= $categories['categories_name'] . ','; as always thanks for any help!!
pronane Posted December 11, 2006 Author Posted December 11, 2006 i found the following code on another google search from this site, basically i am searching all categories in the DB and putting them into the meta name further down in the html: $metakeyword_string = 'ireland, castlerea, power tools, tools direct, west of ireland, roscommon, cheap tools,'; $categories_query = tep_db_query("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id limit 0,20"); while ($categories = tep_db_fetch_array($categories_query)) { $metakeyword_string .= $categories['categories_name'] . ',';} I was wondering ( because my php skills are limited ), will the above overwrite what i oringinally store in the metakeyword_string or will this line overwrite the keywords hardcoded in: $metakeyword_string .= $categories['categories_name'] . ','; as always thanks for any help!! i should add that the following line appears just before the title further down: <meta name="keywords" content=<?php echo $metakeyword_string?> >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.