Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

meta tags and searching


pronane

Recommended Posts

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!!

Link to comment
Share on other sites

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?> >

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...