PDA

View Full Version : Poll Help



Moh
07-07-2008, 03:00 PM
Well im current making a system where all the votes and options are in one entry.

So in options, it is set out like this:

Yes||No||Maybe

And in votes, it is set out like this:

2||6||0

So that simply means:

Yes - 2
No - 6
Maybe - 0

I have got all that working, but I'm having problem with the submit vote.

So the array of:
Yes = $array[0]
No = $array[1]
Maybe = $array[2]

The values of each options are:
Yes = 0
No = 1
Maybe = 2

So if I voted "No", how to I make the value of votes from:

2||6||0

to

2||7||0

Sorry if it dosn't make seance, I got confused my self :P

Want to hide these adverts? Register an account for free!