rendered paste body<?php if ($totalRows_photos > 0) ?><?php do { ?> <div class="photoholder"> <div class="photoframe"> <div align="center"><img src="../thumb/phpthumb.php?src=../photos/<?php echo $row_photos['uid']; ?>/<?php echo $row_photos['filename']; ?>&w=165&h=165&iar=1" alt="" name="<?php echo $row_photos['photoid']; ?>" id="<?php echo $row_photos['photoid']; ?>" /> <input type="hidden" name="photoid[<?php echo $row_photos['photoid']; ?>]" id="photoid<?php echo $row_photos['photoid']; ?>" value="0" /> <input type="hidden" name="judge" id="judge" value="<?php echo $row_photos['judgeid']; ?>" /> </div> </div> <div class="titleholder"><?php echo $row_photos['title']; ?></div> <div class="voteholder"> <ul class='star-rating'> <li class='current-rating'>Currently 3.5/5 Stars.</li> <li><a href='#' title='1 star out of 5' class='one-star' onClick="setvalue('photoid<?php echo $row_photos['photoid']; ?>','1');">1</a></li> <li><a href='#' title='2 stars out of 5' class='two-stars' onClick="setvalue('photoid<?php echo $row_photos['photoid']; ?>','2');">2</a></li> <li><a href='#' title='3 stars out of 5' class='three-stars' onClick="setvalue('photoid<?php echo $row_photos['photoid']; ?>','3');">3</a></li> <li><a href='#' title='4 stars out of 5' class='four-stars' onClick="setvalue('photoid<?php echo $row_photos['photoid']; ?>','4');">4</a></li> <li><a href='#' title='5 stars out of 5' class='five-stars' onClick="setvalue('photoid<?php echo $row_photos['photoid']; ?>','5');">5</a></li></ul> </div> </div> <?php } while ($row_photos = mysql_fetch_assoc($photos)); ?> <?php else ($totalRows_photos = 0) printf(hello); ?>