CodeIgniter Forums
Field length problem with mySQL - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Field length problem with mySQL (/showthread.php?tid=55808)



Field length problem with mySQL - El Forum - 11-10-2012

[eluser]educator[/eluser]
I have an application which accesses some VARCHAR(256) fields in mySQL. When the user enters data, it is correctly stored in these fields. But whenever I retrieve it for reporting it is truncated to 127 characters.

Any ideas on this?


Field length problem with mySQL - El Forum - 11-10-2012

[eluser]jmadsen[/eluser]
how do you know it is being truncating to 127?

post some code, and tell us what debugging you've done so far