date_default_timezone_set("Australia/Melbourne");
$createDate=date('Y-m-d H:i:s', strtotime(str_replace('-', '/', date("Y-m-d H:i:s"))));
//echo $createDate;
$pagename = basename($_SERVER['PHP_SELF']);
$seosql="SELECT * from seo where pageurl like '%".$pagename."%'";
//echo $seosql;
$title ="";
$metadesc="";
$metakey="";
//$seors = mysqli_query($con,$seosql);
//while ($seorow=mysqli_fetch_array($seors) ) {
//$title=$seorow["pagetitle"];
//$metadesc=$seorow["pagemeta"];
//$metakey=$seorow["pagekey"];
//}
//if (strlen($title)<1)
//{
//$title="Papua New Guinea Business Directory | PNG Business Directory | PNG Yellow Pages";
//}
$title="Papua New Guinea Business Directory | PNG Business Directory | PNG Yellow Pages";
$copyright="© 2010-".date("Y").".PNG Business Directory";
function getLogo($logo)
{
if (file_exists("logos/".$logo.".jpg"))
{
echo $logo.".jpg";
}
else
{
echo "logo.jpg";
}
}
$domain="https://www.pngbusinessdirectory.com/";
?>
$id=$_REQUEST["id"];
//echo $id."
";
$sql="SELECT * from pngProducts a, pngBrands b,pngMarketCat c, pngBusiness d where a.pBusiness=d.businessId and a.pBrandId=b.pBrandId and a.pCat=c.mCatId and a.pLink='$id'";
//echo $sql;
$result = mysqli_query($con,$sql);
$count=0;
while ($row1=mysqli_fetch_array($result) )
{
$pImage= $row1["pImage"];
if ($pImage=="")
{
$pImage="place-holder.png";
}
$pId=$row1["pId"];
$pName=$row1["pName"];
$pMCode=$row1["pMCode"];
$pPrice=$row1["pPrice"];
$pCode=$row1["pCode"];
$brandName=$row1["pBrandName"];
$pDescription=$row1["pDescription"];
$mCatName=$row1["mCatName"];
$businessName=$row1["businessName"];
$businessLink=$row1["businessSlug"];
$businessId=$row1["businessId"];
$businessEmail=$row1["businessEmail"];
$schemaDescription=$pDescription;
if (strlen(trim($pDescription))<3)
{
$schemaDescription=$pName;
}
}
?>
$SEOKeywords="$pName price png, buy $pName online, ecommerce png";
$SEODescription="Buy $pName online in PNG - PortMoresby, Lae. Products available from leading stores in PNG ";
$SEOTitle="$pName PNG | $pName Latest Price, Manufacturers & Suppliers in PNG";
?>