how to write code for rating of website in php? help me;;;
muralibobby2015 17 Posting Pro
Recommended Answers
Jump to PostI suggest using css rules referenced via classname for this, e.g.
<p class="user star_<?php echo $no_stars;?>"><?php echo $username;?></p>
Then in your css - this is a very rough example, just to give you an idea:
.user{ padding-left: 20px; background-repeat: none; } .star_1{ background-image: url(images/star1.gif); …
All 3 Replies
Reply to this topic Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.