15
Jul

Hi, on my site I’ve a polls page where have a list of questions that are usually made from a radio group. I'm wanting to take the answers and use Javascript to forward the answer to a mySQL database using PHP. I went to: http://www.w3schools.com/php/php_ajax_da… which has a very nice explination of mySQL, but it didn't really help much.

I'm wanting to have a table that contains the answers and a value. I'm wanting to make that value go up one each time someone votes for that value on the polls page. Also, on a separate page I have the current number of votes. How exactally would I do this?

ex. What do you prefer?

Radio1: Sweet

Radio2: Sour

After an answer is selected (let's say sweet) the script adds 1 to the number of votes for that answer on the mySQL database. Then the person is redirected to the page that shows the total number of votes for both answers. (let's state 40 people stated sweet, and 42 said sour).

Can anyone help me with this?


Answer:
i had a project like that before…

and i read this article/tutorial in making my project

http://www.w3schools.com/php/php_ajax_po…

Book Mark it-> del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Netscape | Yahoo | BlinkList

This entry was posted on Tuesday, July 15th, 2008 at 5:55 am and is filed under Programming. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or TrackBack URI from your own site.

Leave a reply

Name (*)
Mail (*)
URI
Comment