PDA

View Full Version : mysql errors


mhellman
2-27-04, 11:36 PM
Ok here is the scenario:
I have a table in my database that records peoples ratings. Users can vote between 1 and 10. When the user submits his/her vote the database adds 1 to whatever number they chose, adds the amount of the number to a total, and adds 1 to the amount of people that have voted. This is so that I can display a bar graph with the results.

Here is the problem:
After a certain amount of votes (about 250 or so) the amount voted and the total resets. I am almost positive that it is not because I set the properties of these columns incorrectly. I made them an int of about the length of 10.

Please help me, I am stumped. Thank you for your time.

Michael

Pig
2-27-04, 11:47 PM
Probably the limit you are reaching is 255. Double check. Did you do tiny int instead of int?

mhellman
2-28-04, 01:56 PM
I just checked and they are both set to int(20)

Pig
2-28-04, 02:29 PM
Can you post your code?

HalfaBee
2-28-04, 09:15 PM
Another user had a similar problem.
You may have to recreate your table and restore the data.