in reply to Re: Re: Database Design
in thread Reading data from mySQL into hashes and manipulation of hashes

What is being suggested by more than one person is to simplify your database by creating another table to your data is more easily obtained. The suggestion given above is a good one and might look like this:

--------------------------------------------------------- | Table name: polls | --------------------------------------------------------- | poll_no | date_begun | date_ended | begun_by | descrip| --------------------------------------------------------- ------------------------------------------------- | Table name: votes | ------------------------------------------------- | poll_no | option_no | option_text | num_votes | -------------------------------------------------

Now think about how you'd approach your problem given that you have a more normalized database to work with.

~CubicSpline
"No one tosses a Dwarf!"