一个项目的评分可以是 1、2、3、4 或 5,但在数据库中有一些评分值为“0”。我不知道它是如何到达那里的。任何建议,这是代码:
<div class="yourRating">
<input type="hidden" value="269" id="userLoggedCheck" />
<div class="yourRatingDiv">
<div class="yourRatingText">your rating </div>
<input name="notLoggedRate" id="notLoggedRate1" type="radio" title="1 Yll" value="1" class="star" />
<input name="notLoggedRate" id="notLoggedRate2" type="radio" title="2 Yje" value="2" class="star" />
<input name="notLoggedRate" id="notLoggedRate3" type="radio" title="3 Yje" value="3" class="star" />
<input name="notLoggedRate" id="notLoggedRate4" type="radio" title="4 Yje" value="4" class="star" />
<input name="notLoggedRate" id="notLoggedRate5" type="radio" title="5 Yje" value="5" class="star" >
</div>
<div class="userNotLoggedInDiv" style="display:none; left:228px; top:-5px;">
<img src="images/rightArrow.png" class="leftArrowClass4" height="24" width="9" alt="Object Pointer" />
<img src="images/close2.jpg" class="leftArrowClass5" height="13" width="13" alt="Close" />
<div class="notLoggedText">log in to rate</div>
<a href="login" class="userLogInHref">Log in</a>
<div class="haventSignUpYet">Still not registered <a href="register" class="userSignUpHref"> register now <img src="images/setupLink.png" class="setupLinkImg" alt="Icon" /></a></div>
<div class="space"></div>
</div></div>