The basic database structure would probably look something like this:
Two tables: Polls and PollOptions
A "many to one" relationship, as they say, meaning you have multiple rows in one table that correspond to one row in another table.
Polls
PollName
PollQuestion
PollAnswer // Should probably correspond to the ID column of PollOptions...
ID
PollOptions
OptionText
PollID // Corresponds to the ID column in the Polls table
ID
Now write some PHP code that spits out your poll. Here's some very basic code. You might know how to do this just fine already, but in case you're really new to this, I'll go ahead...
It's not tested, but hopefully it sets you on the right path. Let me know if I screwed something up =)
echo "What did you think of Spiderman 2?<br>";
$sql = "SELECT OptionText, PollOptions.ID as oID FROM Polls, PollOptions WHERE PollName='What did you think of Spiderman 2?' AND PollID=Polls.ID";
$result = mysql_query($sql);
while ($record = mysql_fetch_array($result)) {
$option = $record['OptionText'];
$optionID = $record['oID'];
echo "<input type=radio name=poll value=$optionID>$option<br>";
}
You'll need some FORM and SUBMIT things, of course.
It should also be pretty easy to set up a third table to track responses to the poll.
PollResponses
PollID // Corresponds to the ID column in the Polls table
Response // Corresponds to the ID column in the PollOptions table
ID
I'm really sleepy 🙁 so I'm going to leave the coding for that to you or another member, or maybe to myself later today.