May 7, 2008
Panama Vacations in Topical Paradise!
Panama Vacations - Panama is great place for the day-trip style of vacation. This is mostly because the country is so small. Although small, it is packed with many things to see, and you will find that tour and vacation companies will offer both one-day and multi-day tour packages. Day trips, however, are the most popular.
When you visit Panama, an absolute must is the half-day tour of the Panama Canal. This tour takes you through one of the locks on the ‘Pacific’ end of the canal. It raises your boat to 26 meters above sea level, goes through a portion of the canal, turns around, and then the boat is lowered back to the level of the Pacific Ocean.
$db="lhpanama_articles";
$cn=mysql_connect("localhost","lhpanama_nicabri","3uso66s36");
//$cn=mysql_connect("localhost","root","admin");
if(! $cn) {
die("Connection could not be Establish");
}
mysql_select_db($db) or die("Could not open database");
$a_sql = "select * from tbl_articles p,tbl_category c where article_title=' Panama Vacations in Topical Paradise!' and p.article_cat=c.cat_id and p.is_active='Y'";
//echo "query= ".$a_sql;
$rs_sql = mysql_query($a_sql);
$row_sql = mysql_fetch_object($rs_sql);
$aid = $row_sql->article_id;
//echo “
article id= “. $aid .”
“;
$siteurl = $row_sql->cat_name;
$sitename = $row_sql->site_name;
//echo “
siteurl= “. $siteurl .”
“;
if ($row_sql->article_id!=”")
{
echo “ For the Full Article visit the “. $sitename .” site click here“;
}
else
{
$title= ‘Panama Vacations in Topical Paradise!’;
//$title= “Panama Car Rental”;
$titlepieces = explode(” “, $title);
//$titlepieces[0]=Panama;
//echo “
firsttitle ” .$titlepieces[0];
$firsttitle = $titlepieces[0];
$length= strlen($firsttitle);
//echo “
strlength ” .$length;
if( $length>5 )
{
$sitename = “Living History “.$titlepieces[0];
}
if($length==2)
{
$sitename = “Living History “.$titlepieces[0].” Salvador”;
}
if($length==5)
{
$sitename = “Living History “.$titlepieces[0].” Rica”;
}
//echo “
sitename ” .$sitename;
$sql = “select * from tbl_category where site_name = ‘”.$sitename. “‘ and is_active=’Y’ “;
//echo “
sql = ” .$sql;
$myquery = mysql_query($sql);
$result = mysql_fetch_array($myquery);
$siteurl = $result[cat_name];
//echo “
siteurl ” .$siteurl . “
“;
echo “ For the Full Article visit the “. $sitename .” site click here“;
}
?>




























Leave a Comment
You must be logged in to post a comment.