0){
while ($row = mysql_fetch_object($res_result1)){
//$review_q='SELECT sum(rating) as totalratings,count(*) as totalreviews FROM ind_writereview WHERE companyId="'.$row->id.'" ORDER BY id DESC';
//$rate_result=mysql_query($review_q) or die(mysql_error());
//$row_ratings = mysql_fetch_object($rate_result);
/*$review_q='SELECT * FROM ind_writereview WHERE companyId="'.$row->id.'" ORDER BY id DESC';
$review_result=mysql_query($review_q) or die(mysql_error());
$total_reviews=mysql_num_rows($review_result);
$rate_q='SELECT * FROM ind_ratebusiness WHERE companyId="'.$row->id.'"';
$rate_result=mysql_query($rate_q) or die(mysql_error());
$total_num_rates=mysql_num_rows($rate_result);
$total_rating_points=$total_num_rates*5;
$num_star='';*/
//if($total_num_rates>0){
//$total_point_received='';
/*while ($row_ratings = mysql_fetch_object($rate_result)){
$number_rate=$row_ratings->rating;
$total_point_received+=$number_rate;
}*/
//echo '
'.$total_point_received.'
';
//$num_star=5/$total_rating_points*$total_point_received;
//}
//$row_reviews = mysql_fetch_object($review_result);
if(isset($row->writeReviewPhoto) && !empty($row->writeReviewPhoto)){
$image='
';
}else{
$image='
';
}
if(file_exists('upload/company_thumb/'.$row->image1)){
$com_image='
image1." width="50" height="50" />';
}else{
$com_image='
';
}
if(isset($row->user_email) && !empty($row->user_email)){
$user_email=$row->user_email;
$user_name=Reviwer_Name($user_email);}
?>
-
totalratings!="") {
if($row->totalratings >= $i){
echo '';
} else {
echo '';
}
} else {
echo '';
}
}
?>
-
Total totalreviews;?> reviews
ADDRESS;?>
CITY.' - '.$row->PINCODE;?>
STATE;?>
WEBSITE)){
?>
WEBSITE; ?>
short_description)){
if(strlen($row->short_description)>115)
$short_description = substr($row->short_description,0,115).'...';
else
$short_description = $row->short_description;
echo '
'.$short_description.'';
}
?>
writeReviewMsg) && !empty($row_reviews->writeReviewMsg)){?>