Can you insert data into two tables using only one query? I know you can SELECT and UPDATE two tables with one query, which is why I assumed you could do it with INSERT, but upon trying and looking at sites provided by Google, I came up with nothing... which is where I come to ask you lot :P
I tried this:
//Insert vote into database
INSERT INTO poll_vote, poll SET
poll_vote.poll_id = '%d',
poll_vote.option_id = '%d',
poll_vote.voter_id = '%d',
poll.who_voted = '%s'",
)) or die(mysql_error());
I don't believe you can do it for an INSERT statement, but you can put them in a TRIGGER which can then be executed using one call to it. If you were looking for an easy solution then I think you're out of luck, I'm afraid.
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.