Get max_lenght of numeric field |
HI , this is my function :
PHP Code: $finfo = $this->db->getFieldData($tabella_db); How can i do the same on numeric field (tinyint,smallint etc.)
For a numeric field, the limit is a maximum value, it's not a maximum number of digits. Use the rules 'less_than_equal_to' with the maximum value for a tinyint (127), smallint (32767), etc.
See this page for a list of all the rules: http://codeigniter.com/user_guide/librar...able-rules |
Welcome Guest, Not a member yet? Register Sign In |