";
$b = 0;
while($b < 2){
$b = $b + 1;
$num = $num + 1;
if($num == 1){
$random = rand(1, $total);
$bank[] = $random;
}else {
$random = rand(1, $total);
while(in_array($random, $bank)){
$random = rand(1, $total);
}
$bank[] = $random;
}
$query2 = "select * from `testimonials` where id = '".$test_id[$random-1]."'";
$result2 = mysql_query($query2);
$data2 = mysql_fetch_assoc($result2);
if($b == 1){
echo "
";
}else{
echo "
";
}
echo "
";
echo "
".$data2['testimonial']."
";
echo "
";
if($data2['gender'] == 'female'){
echo "
";
}else {
echo "
";
}
echo "
more";
echo "
".ucfirst($data2['first'])." ".ucfirst($data2['last']).".
";
echo "
-".ucfirst($data2['city'])."
";
echo "
";
}
echo "
";
}
?>
include "assets/php/footer.php";
?>