PhP mySQL help please

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rob0225
Forum Newbie
Posts: 1
Joined: Sun Oct 26, 2008 12:52 pm

PhP mySQL help please

Post by rob0225 »

I can really use some help on this. I am a php virgin and cannot figure out this issue.

I need to retrieve data from a mySQL table and display it on a webpage. I have a survey on my website with the results going to a mySQL db. I would like to display the results of that survey.

My table has 7 fields and the value can be anyone of 5 different options that the user taking the survey can select.

I would like to display the results of each question as a percentage. I.E.

1. Food Quality- Excellent Very Good Good Fair Poor
75% 20% 3% 2% 0%


and so on and so on for each of the questions I asked.

Help please! :)


Thanks,

Robert
Post Reply