Categories: Miscellaneous

super bonanza


if(!empty($arrq))
{
foreach($arrq as $val)
{
$sql=”select * from user where sponsor=”.$val;
$rs=mysql_query($sql);
while($row=mysql_fetch_array($rs))
{

$arrq2[]=$row[‘dmecode’];

$arr_dataq2[]=”<tr align=’center’ class=’normal’><td></td><td>”.$row[‘dmecode’].”</td><td>”.$row[‘fname’].”</td><td>”.$val.”</td><td>”.$row[‘placement_type’].”</td></tr>”;
}
$date=date(“Y-m-01”,time()) ;
$tomorrow=date(“Y-m-31″,time());

$sql3=”select count(*) from user where sponsor=”.$val.” AND `date` BETWEEN ‘$date’ AND ‘$tomorrow'”;
$rs3=mysql_query($sql3)or die(“Error in query-251”);
$l3count=0;
while($row=mysql_fetch_array($rs3))
{

$l3count=$l3count+1;
$date3=$row[‘date’];

}
}
}

?>

<?
if(!empty($arr1r))
{

foreach($arr1r as $valr)
{
$date=date(“Y-m-01”,time()) ;
$tomorrow=date(“Y-m-31″,time());
$sqlr=”select * from user where sponsor=”.$valr;

$rsr=mysql_query($sqlr);
while($row1r=mysql_fetch_array($rsr))
{
$arr2r[]=$row1r[‘dmecode’];

$arr_data2r[]=”<tr align=’center’ class=’normal’><td></td><td>”.$row1r[‘dmecode’].”</td><td>”.$row1r[‘fname’].”</td><td>”.$valr.”</td><td>”.$row1r[‘placement_type’].”</td></tr>”;
}

//count r3

$date=date(“Y-m-01”,time()) ;
$tomorrow=date(“Y-m-31″,time());
$sqlr=”select count(*) from user where sponsor=”.$valr.” AND `date` BETWEEN ‘$date’ AND ‘$tomorrow'”;
$rsr=mysql_query($sqlr);
$r3count=0;
while($row1=mysql_fetch_array($rsr))
{
$r3count=$r3count+1;
$date3r=$row1r[‘date’];

}
}
}

?>

<?

$d3l=$date3l;
$d3r=$date3r;
$l3=$l3count;
$r3=$r3count;
$l3count=$l3count;

echo “<tr align=’center’ class=’normal’><td> “.$d3r.” </td><td> 3</td><td> “.$l3.” </td><td> “.$r3.” </td><td><input type=’text’ name=’text3′ id=’text3′ onblur=’addition()’ value=”.$l3count.” ></td>”;
?>

subash

Share
Published by
subash

Recent Posts

Benefits of Hiring Magento Custom Development in 2024

Choosing the perfect Magento Custom Development is quite a challenging task. As being a technical…

10 months ago

How to Choose the Best React JS Development Company in 2024

Usually finding a perfect React JS Development Company is a difficult task, but to simplify…

10 months ago

Tips to Choose Best Shopify Website Development Services

Have you ever worried about things that you should consider while choosing Shopify Website Development…

12 months ago

How Can SEO Company in India Help My Startup Grow?

Have you ever thought that is it important to hire an SEO Company in India…

12 months ago

Top Benefits of Magento Custom Development Services

You can easily grow your e-commerce business with Magento Custom Development Services from Raghwandra. Our…

1 year ago

Raghwendra The Best React JS Development Company

Every person who has an online business always wants seamless web development and smooth performance.…

1 year ago