<?php
include("live/client/dbase/dbstring.php"); // Database Connection
include("live/client/dbase/cDatabase.php"); // class file
$cDB = new cDatabase($dbase_host_name, $dbase_user_name, $dbase_pass_word, $dbase_db_name);

function calculateAge($date){
list($year,$month,$day)= explode("-", $date);
$year_diff = date("Y") – $year;
$month_diff = date("m") – $month;
$day_diff = date("d") – $day;
if ($day_diff < 0 && $month_diff==0) $year_diff–;
if ($day_diff < 0 && $month_diff < 0) $year_diff–;
return $year_diff;
}

$mem_info = $cDB->ExecuteReader("select * from tbl_mem_details where tbl_mem_sex=’female’ and tbl_mem_status=’Active’ order by RAND() LIMIT 6" );
$total_mem = mysql_num_rows($mem_info);

?>
<h2>Profile Brides</h2>
<table>

<?php
$t=0;
while($user_details = mysql_fetch_array($mem_info,MYSQL_ASSOC))
{
$agediff=calculateAge($user_details['tbl_mem_dob']);
$folder = ‘live/File/Users/’.$user_details['id'].’/image/’;
$filetype = ‘*.*’;
$files = glob($folder.$filetype);
$count = count($files);
$arrayvalue[$av] = $user_details['id'];
$av = $av + 1;

for ($i = 0; $i < $count; $i++)
{

if (($files[$i]== $folder."Thumbs.db"))
{

}
else
{

if($t=="0")
{
?>
<tr>
<?php
}
else if($t==2)
{
?>
</tr>
<tr>
<?php
}
else if($t==4)
{
?>
</tr>
<tr>
<?php
}
?>

<td style="border: 1px solid #D1E0E0;">

<table style="font-family:Arial, Helvetica, sans-serif;">
<tr>
<td rowspan="3" width="200px">
<?php

$url="http://mybestcompanion.com/".$files[$i];
?>

<img src="<?php echo "http://mybestcompanion.com/".$files[$i];?>" width=’100px’ height=’100px’ />

</td>
<td width="200px"><strong style="color:#063;">Reg.ID : </strong><?php echo $user_details['tbl_mem_reg_id']; ?></td>
</tr>
<tr>
<td><strong style="color:#063;">Age/Height/Weight : </strong><?php echo $agediff ?>years / <?php echo $user_details['tbl_mem_height'] ?> (ft)/<?php echo $user_details['tbl_mem_weight'] ?></td>
</tr>
<tr>
<td><a href="http://mybestcompanion.com/live">View Details</a></td>
</tr>

</table>

</td>
<?php
}

}
$t=$t+1;
}

?>
</tr>
</table>
<?php
$mem_info = $cDB->ExecuteReader("select * from tbl_mem_details where tbl_mem_sex=’male’ and tbl_mem_status=’Active’ order by RAND() LIMIT 6" );
$total_mem = mysql_num_rows($mem_info);

?>
<h2>Profile Grooms</h2>
<table>

<?php
$t=0;
while($user_details = mysql_fetch_array($mem_info,MYSQL_ASSOC))
{
$agediff=calculateAge($user_details['tbl_mem_dob']);
$folder = ‘live/File/Users/’.$user_details['id'].’/image/’;
$filetype = ‘*.*’;
$files = glob($folder.$filetype);
$count = count($files);
$arrayvalue[$av] = $user_details['id'];
$av = $av + 1;

for ($i = 0; $i < $count; $i++)
{

if (($files[$i]== $folder."Thumbs.db"))
{

}
else
{

if($t=="0")
{
?>
<tr>
<?php
}
else if($t==2)
{
?>
</tr>
<tr>
<?php
}
else if($t==4)
{
?>
</tr>
<tr>
<?php
}
?>

<td style="border: 1px solid #D1E0E0;">

<table style="font-family:Arial, Helvetica, sans-serif;">
<tr>
<td rowspan="3" width="200px"><img src="<?php echo "http://mybestcompanion.com/".$files[$i];?>" width=’100px’ height=’100px’ /></td>
<td width="200px"><strong style="color:#063;">Reg.ID : </strong><?php echo $user_details['tbl_mem_reg_id']; ?></td>
</tr>
<tr>
<td><strong style="color:#063;">Age/Height/Weight : </strong><?php echo $agediff ?>years / <?php echo $user_details['tbl_mem_height'] ?> (ft)/<?php echo $user_details['tbl_mem_weight'] ?></td>
</tr>
<tr>
<td><a href="http://mybestcompanion.com/live">View Details</a></td>
</tr>

</table>

</td>
<?php
}

}
$t=$t+1;
}

?>

great essays 4

For students, among the best methods to earn additional money would be order research paper to write essays for money. There are an assortment of companies that pay their employees to complete these posts, so that they can earn a bit of additional money as they get paid to do what they enjoy.

You can find numerous essay writers in the industry now

But just how would you locate the best you to secure you very good results? Below are some tips that will soon be helpful for you: find something that can provide your homework in your planned essay writing time. Also, do not go for cheap services since they might not deliver quality and high-quality workout.