i'm creating a review system so that users can rate products from 1 star to five stars. I've created the review table in MYSQL - set to ENUM, but how do I convert the text (ie. "3 stars") to a graphical image of 3 stars on the webpage??
thanks...
round the bnumber up and name the image 3Star.gif
then output like WHERE rating equals the rounded rank from the db
$ImageLink = $rating . "Star.gif"; echo "<img src=\"/path/to/images" . $ImageLink . "\">";