Welcome Guest, Not a member yet? Register   Sign In
What should my type be for votes in db
#1

(This post was last modified: 01-16-2017, 02:44 AM by wolfgang1983.)

I have my votes column in my database and have set it at 

name = votes
type = tinyint(3)

When the user clicks on button it adds another vote to current votes

But not sure if set type correct. Because if is a negative number -15 example not sure if tinyint(3) can handle it.

Thanks

[Image: 394I5j2daOwQ.png]
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply


Messages In This Thread
What should my type be for votes in db - by wolfgang1983 - 01-16-2017, 01:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB