[eluser]Unknown[/eluser]
I am building a simple form generation class/ orm
I need to get the maximum allowed length of fields in the mysql table.
CI allows to fetch max_length but this only fetches the length of the data already in the field.
This is the value returned by mysql_field_len($result, $num)
This is my code in my controller...
$this->CI->load->database();
$query = $this->CI->db->query($sql);
$fields = @$query->field_data();
$res = $query->result_array();
the error suppression is there because I get data_seek errors without it.
How can I get the field length as specified in the schema?
Kind regaards
Kevin