Location: PHPKode > scripts > Up Birthday > kbbirthday/kbbirthday/index.php
<?PHP
include "config.php";

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
  <title>Free PHP Scripts</title>
  <meta name="description" content="KB Kunal Bansal is a web hub that provides the user with the 

free PHP script, tools, site references ,php hosting, php tools and much more..."/>
  <meta name="keywords" content="web hub, scripts, free php scripts, php, free, php tools, php 

information, php hosting, php softwares,php affiliate script, php theme script, php login script, 

free webspace, free homepage, webpage, website, web site, free web site, web host, web hosting, 

free web host, free web hosting, cheap web host, cheap web hosting, building a web site, hosting 

a web site, web publishing, web site tools, web authoring, Free domain name, domains, site host, 

building a blog, web site creation tools, domain hosting, top hosts, free scripts,compare"/>
  <meta name="ROBOTS" content="ALL"/>
</head>

<body>

<h1>Upcoming Birthday's</h1>
<table border="0" class=maintext2  cellpadding="0" cellspacing="0" style="border-collapse: 

collapse" bordercolor="#111111" width="100%">
  <tr>
    <td width="100%" valign="top">
         <marquee direction=up height=60 onmouseout=this.start() onmouseover=this.stop()
scrollAmount=3 scrolldelay=60 width=140>
<center> 


<?php

$nowdd= gmdate("d" , time() + 19800);
$nowmm= gmdate("m" , time() + 19800);
$nowdd2=$nowdd+10;


$qrybdy="SELECT * FROM tbbdy where 
bdymm='$nowmm' AND bdydd>='$nowdd' AND bdydd<='$nowdd2' order by bdydd ";

$rslbdy=mysql_query($qrybdy);
$nbdy = mysql_num_rows($rslbdy);

for ($i=0; $i<$nbdy ; $i++)
{
$arrbdy =  mysql_fetch_row($rslbdy);

if ($nowdd==$arrbdy[2])
{
echo "
	<b>$arrbdy[6] $arrbdy[7]</b><br>
         <b>Today</b> $arrbdy[2]  $arrbdy[3]<br>
	 

         <HR width='40%'>
";
}
else
{
echo "
	<b>$arrbdy[6] $arrbdy7]</b><br>
	 $arrbdy[2]  $arrbdy[3]<br>
	 
         <HR width='40%'>
";
}
}


if($nowdd>=25)
{
$qrymon="SELECT * FROM tbmon where monid='$nowmm'  ";
$rslmon=mysql_query($qrymon);
$nmon = mysql_num_rows($rslmon);
$arrmon =  mysql_fetch_row($rslmon);
$nowmm2=$arrmon[0];
$nowmm2=$nowmm2+1;


$qrymon2="SELECT * FROM tbmon where monid='$nowmm2'  ";
$rslmon2=mysql_query($qrymon2);
$nmon2 = mysql_num_rows($rslmon2);
$arrmon2 =  mysql_fetch_row($rslmon2);
$nowmm3=$arrmon2[0];

$qrybdy2="SELECT * FROM tbbdy where 
bdymm='$nowmm3' AND  bdydd<='5' order by bdydd ";
$rslbdy2=mysql_query($qrybdy2);
$nbdy2 = mysql_num_rows($rslbdy2);


for ($i=0; $i<$nbdy2 ; $i++)
{
$arrbdy2 =  mysql_fetch_row($rslbdy2);

echo "
	<b>$arrbdy2[6] $arrbdy2[7]</b><br>
	 $arrbdy2[2]  $arrbdy2[3]<br>
         <HR width='40%'>
";

}


}


?>

</center></marquee>
    </td>
  </tr>
</table>


</body>
</html>
Return current item: Up Birthday