Welcome Guest, Not a member yet? Register   Sign In
$this->db->field_data() max_length
#1

[eluser]jtkendall[/eluser]
Hi,

I'm working on a application that uses $this->db->field_data() to get the field meta-data of a MySQL table (MyISAM storage engine). However when I check the results, max_length is always 0 even though my fields have lengths (at least for blob, string, and int types (as returned by the function), I haven't tested any others).

I could be completely wrong in my understanding of how this works (script or DB wise), but if I have a length set for my fields, shouldn't it show up in the returned data? I've never used this function (or even attempted the same thing outside of CI).

I've attached a screen-shot of my table's setup.


Messages In This Thread
$this->db->field_data() max_length - by El Forum - 09-27-2008, 04:04 PM
$this->db->field_data() max_length - by El Forum - 09-27-2008, 06:33 PM
$this->db->field_data() max_length - by El Forum - 09-27-2008, 10:10 PM
$this->db->field_data() max_length - by El Forum - 09-27-2008, 10:31 PM
$this->db->field_data() max_length - by El Forum - 09-27-2008, 10:47 PM
$this->db->field_data() max_length - by El Forum - 09-27-2008, 10:50 PM
$this->db->field_data() max_length - by El Forum - 09-27-2008, 11:08 PM
$this->db->field_data() max_length - by El Forum - 09-27-2008, 11:19 PM
$this->db->field_data() max_length - by El Forum - 09-27-2008, 11:37 PM
$this->db->field_data() max_length - by El Forum - 09-28-2008, 07:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB