i tried. but it not success full.. please give me solution..
php code
<?php
function getReviews($con){
$sql = "SELECT * FROM review";
$result = mysql_query($sql,$con);
while ($row = mysql_fetch_array($result)) {
echo "<div class=' col-md-12 comment-box'>";
echo "<div class='left-comm col-md-2'>";
echo "<img class='img-responsive' src='images/article/avatar3.png'>";
echo "</div>";
echo "<div class='right-comm col-md-6'>";
echo "<p class='user-name'>".$row['email']."</p>";
echo for ($i=0; $i <$row['rating'] ; $i++) {
echo "*";
}"<br>";
echo $row['review']."<br>";
echo "</div>";
echo "</div><br>";
?>
i want to display rate value using stars.in this function.