Rate this article

How do I set dynamic meta tags for a page with dynamic content

Rating: 5.0/5 (1 vote cast)

Set up your database as normal for your content and ad fields for:

  • Page Title
  • Keywords
  • Meta Description

Create a record-set for the page, retrieving the record for the page.

Add the information as follows:

<title>Site Title: <?php echo $row_rs_content['pg_title']; ?></title>
<META NAME="KEYWORDS" CONTENT="<?php echo $row_rs_content['pg_keywords']; ?>">
<META NAME="DESCRIPTION" CONTENT="<?php echo $row_rs_content['pg_description']; ?>">

Adobe

XMS Systems
Free PositiveSSL and WhoisGuard with Every Domain Purchase
ionCube Online PHP Encoder

Although we try to ensure all the articles submitted are valid it is your responsibility to make sure you have backups before you use these suggestions on your pc or websites.
We do not take any responsibility for any data-loss, loss in functionality or any problem that might arise in what-ever way or form by making use of the information on this site.

"Friends of Interakt" has no connection to the Adobe Interakt Company