boomers
02-20-2006, 06:14 PM
Hello... another problem that is perplexing me
Again I am making a website... on this site you can rate someone/something with score of 1 - 5 which is then included in the sum for the total average & stored in a database.
You can also view someone else's total average rating... all ive done here is run an sql query to get the number from the database and display it via a label.
"SELECT average FROM rating WHERE blah blah"
and then...
If myDataReader.Read() Then
Me.lblRating.Text = "Overall average score is " & myDataReader("rating")
So you would see something like: "Overall average score is 4"
- What I would like to know is how I can show a picture of 4 stars show instead of the number '4'.
Please can someone give an example... say if I had 5 seperate .gif images of stars:
1star.gif
2star.gif
3star.gif
4star.gif
5star.gif
I would really appreciate anyones help.
Again I am making a website... on this site you can rate someone/something with score of 1 - 5 which is then included in the sum for the total average & stored in a database.
You can also view someone else's total average rating... all ive done here is run an sql query to get the number from the database and display it via a label.
"SELECT average FROM rating WHERE blah blah"
and then...
If myDataReader.Read() Then
Me.lblRating.Text = "Overall average score is " & myDataReader("rating")
So you would see something like: "Overall average score is 4"
- What I would like to know is how I can show a picture of 4 stars show instead of the number '4'.
Please can someone give an example... say if I had 5 seperate .gif images of stars:
1star.gif
2star.gif
3star.gif
4star.gif
5star.gif
I would really appreciate anyones help.
