<meta name="description" content="Pawpal - As the sales volume of processed food increases, the health of domesticated dogs is adversely degenerating. Processed food though convenient for the owners is actually leading dogs to the veterinarians more often.
" />
<title>Pawpal - Because they matter !</title>
<head>
.....
<?php
if(!$_GET['id']){
// not viewing a single article, show normal title/description
echo '<title>Pawpal - Because they matter !</title>';
echo '<meta name="title" content="Pawpal - Because they matter !" />';
echo '<meta name="description" content="Pawpal.ca - the only professional house-call dog grooming service provider in Downtown Vancouver, operating 7 days a week. To book your home-grooming appointment, e-mail us at contact@pawpal.ca." />';
}else{
// viewing a single article, show the title/description for it
require_once('news/db.php');
require_once('news/config.php');
$data = DataAccess::fetch(sprintf("SELECT title,shortstory FROM %s WHERE id = ?", NEWS_ARTICLES), $_GET['id']);
$title = $data['0']['title'];
$short = $data['0']['shortstory'];
echo sprintf('<title>Pawpal - %s</title>', strip_tags($short), PHP_EOL);
echo sprintf('<meta name="title" content="Pawpal - %s" />%s', $title, PHP_EOL);
echo sprintf('<meta name="description" content="Pawpal - %s" />%s', strip_tags($short), PHP_EOL);
}
?>
<head>
.....
<?php
if(!$_GET['id']){
// not viewing a single article, show normal title/description
echo '<title>Pawpal - Because they matter !</title>';
echo '<meta name="title" content="Pawpal - Because they matter !" />';
echo '<meta name="description" content="The only professional house-call dog grooming service provider in Downtown Vancouver, operating 7 days a week. To book your home-grooming appointment, e-mail us at contact@pawpal.ca." />';
}else{
// viewing a single article, show the title/description for it
require_once('news/db.php');
require_once('news/config.php');
$data = DataAcc! ess::fetch(sprintf("SELECT title,shortstory FROM %s WHERE id = ?", NEWS_ARTICLES), $_GET['id']);
$title = $data['0']['title'];
$short = $data['0']['shortstory'];
echo sprintf('<title>Pawpal - %s</title>', strip_tags($short), PHP_EOL);
echo sprintf('<meta name="title" content="Pawpal - %s"! /& gt;%s', $title, PHP_EOL);
echo sprintf('<meta name="description" content="%s" />%s', strip_tags($short), PHP_EOL);
}
?>
<?php
if(!$_GET['id']){
// not viewing a single article, show normal title/description
echo '<title>Pawpal - Because they matter !</title>';
echo '<meta name="title" content="Pawpal - Because they matter !" />';
echo '<meta name="description" content="Pawpal.ca - the only professional house-call dog grooming service provider in Downtown Vancouver, operating 7 days a week. To book your home-grooming appointment, e-mail us at contact@pawpal.ca." />';
}else{
// viewing a single article, show the title/description for it
require_once('news/db.php');
require_once('news/config.php');
$data = DataAccess::fetch(sprintf("SELECT title,shortstory FROM %s WHERE id = ?", NEWS_ARTICLES), $_GET['id']);
$title = $data['0']['title'];
$short = $data['0']['shortstory'];
echo sprintf('<title>Pawpal - %s</title>', strip_tags($title), PHP_EOL);
echo sprintf('<meta name="title" content="Pawpal - %s" />%s', $title, PHP_EOL);
echo sprintf('<meta name="description" content="Pawpal - %s" />%s', strip_tags($short), PHP_EOL);
}
?>