PHP - MySQL - Limit the minimum and maximum integers in a row?

  • Thread starter Thread starter AngelMare
  • Start date Start date
A

AngelMare

Guest
How can I limit a row in a table to not go above 100 and not below 0, such as in percents, when that row is updated, and if the value ends up above 100 it will end up as 100, and if it goes below 0, it will end up as 0?
Any help would be appreciated.
 
Back
Top