"; Echo "Noteaza: "; Echo "$star1 "; Echo "$star2 "; Echo "$star3 "; Echo "$star4"; Echo "$star5"; } $id=$_GET['id']; $voted=$_GET[voted]; mysql_query ("UPDATE vote SET total = total+$voted, votes = votes+1 WHERE id = $id"); ?>
"0" && $rate <="5") { $star1="
"; } else { $star1="
";} if ($rate >"1" && $rate <="1.5") { $star2="
"; } elseif ($rate >"1.5" && $rate <="5"){ $star2="
";} else { $star2="
";} if ($rate >"2.5" && $rate <="5") { $star3="
"; } elseif ($rate >"2" && $rate <="2.5"){ $star3="
";} else { $star3="
";} if ($rate >"3.5" && $rate <="5") { $star4="
"; } elseif ($rate >"3" && $rate <="3.5"){ $star4="
";} else { $star4="
";} if ($rate >"4.5" && $rate <="5") { $star5="
"; } elseif ($rate >"4" && $rate <="4.5"){ $star5="
";} else { $star5="
";} Echo "Media curenta: ". round($current, 1) ."
"; Echo "Noteaza: "; Echo "$star1 "; Echo "$star2 "; Echo "$star3 "; Echo "$star4"; Echo "$star5"; } $id=$_GET['id']; $voted=$_GET[voted]; mysql_query ("UPDATE vote SET total = total+$voted, votes = votes+1 WHERE id = $id"); ?>
"; Echo "Noteaza: "; Echo "$star1 "; Echo "$star2 "; Echo "$star3 "; Echo "$star4"; Echo "$star5"; } $id=$_GET['id']; $voted=$_GET[voted]; mysql_query ("UPDATE vote SET total = total+$voted, votes = votes+1 WHERE id = $id"); ?>