I've been using the Zend Framework for a long time, but now I have a problem that puzzled me. I have a table (MySQL) with two columns ( id and msg ). The id field is the auto-increment value, and the msg field is the longtext type.
The following code should work fine to insert a record into a table:
$t = new Zend_Db_Table('table1'); $id = $t->insert(array('msg' => $content));
Whenever $content is just a blah string value, it works just fine, as it should. But fieldtype not a longtext type for no reason, the content will be quite large. So, now I'm trying to place about 14kb of data in $content , an exception does not occur, inserting the database seems to work, but only for the first 6kb. The rest of the data is already gone ?!
When I try to use mysql_connect , mysql_query , etc. in oldfashioned, it all works like a charm. So this is really a problem with the Zend base ... Has anyone else experienced this?
source share