|
Welcome to ePapers |
$id=1;
$connHomePage=mysql_connect("localhost","u526307700_epaper_epaperU","Ee9?T;^d#");
mysql_select_db("u526307700_epaper_epaperU",$connHomePage);
$sqlHomePage="select * from HomePage where HomePageid=".$id;
$resultHomePage=mysql_query($sqlHomePage,$connHomePage) or die(mysql_error());
$number_of_rowsHomePage=mysql_num_rows($resultHomePage);
if($newarrayHomePage=mysql_fetch_array($resultHomePage))
{
$HomePageBody=$newarrayHomePage['HomePageBody'];
?>
|
}
?>
|
ePapers in |
$connePapers=mysql_connect("localhost","u526307700_epaper_epaperU","Ee9?T;^d#");
mysql_select_db("u526307700_epaper_epaperU",$connePapers);
$TempSStatus="Active";
$sqlePapers="select * from ePapers where SStatus='$TempSStatus' and LangageusName='$BlogLangageusName' order by ePapersName";
$resultePapers=mysql_query($sqlePapers,$connePapers) or die(mysql_error());
$number_of_rowsePapers=mysql_num_rows($resultePapers);
$ieP=0;
while ($newarrayePapers=mysql_fetch_array($resultePapers))
{
$ieP=$ieP+1;
$ePapersid=$newarrayePapers['ePapersid'];
$MBlgName=$newarrayePapers['MBlgName'];
$ePapersName=$newarrayePapers['ePapersName'];
$imagename=$newarrayePapers['imagename'];
if ($ieP % 5==0)
{
$ieP=$ieP+1;
?>
}
?>
|
}
?>
if ($ieP==0)
{
?>
No Data!! |
}
?>
|
|
|
$connePapers=mysql_connect("localhost","u526307700_epaper_epaperU","Ee9?T;^d#");
mysql_select_db("u526307700_epaper_epaperU",$connePapers);
$sqlePapers="select * from ePapers order by NoofViews DESC";
$resultePapers=mysql_query($sqlePapers,$connePapers) or die(mysql_error());
$number_of_rowsePapers=mysql_num_rows($resultePapers);
$iePapers=0;
while ($newarrayePapers=mysql_fetch_array($resultePapers))
{
$ePapersTempPSizeCount=$ePapersTempPSizeCount+1;
if (7 >= $ePapersTempPSizeCount and 1 <= $ePapersTempPSizeCount)
{
$iePapers=$iePapers+1;
$ePapersid=$newarrayePapers['ePapersid'];
$MBlgName=$newarrayePapers['MBlgName'];
$ePapersName=$newarrayePapers['ePapersName'];
$imagename=$newarrayePapers['imagename'];
if ($iePapers % 8==0)
{
$iePapers=$iePapers+1;
?>
}
?>
|
}
}
?>
|
|
|