
June 30th, 2009, 02:00 AM
|
|
Developer Shed
|
|
Join Date: Jun 2007
Posts: 20,338
Time spent in forums: < 1 sec
Reputation Power: 23
|
|
|
How To Create Basic Poll Using PHP & MySQL (Part 2)
Basically, you need to write static function to:
- query your poll question id, question, answer, option count, total vote count and status from tbl_poll
- query user voted record to check whether user has voted before or not.
- Do delete record from tbl_user_vote and insert user_id, qst_id and option value if he has voted.
- Update option count and total vote count.
Read the full article here: How To Create Basic Poll Using PHP & MySQL (Part 2)
|