I'm trying to protect my back end from possible malicious POST's.
Each back end method has a certain set of variables expected in JSON that corresponds to a field in a mysql table so I figured it would be good if I limited the maximum number of characters receivable in any of those methods to the sum of what could possibly go into these fields + overhead from json formatting.
How can I find out the maximum length in string representation to any of the fields that I have in my tables?
phpmyadmin displays a (number) next to the type of each field when viewing the structure of a table that seems to be what I want, like an UNSIGNED INT can have a maximum of 10 characters, UNSIGNED BIGINT is 20 and CHAR(127) is 127.. but I'm unsure what this number really means.