CodeIgniter Forums
Textarea content into DB - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: Textarea content into DB (/thread-36346.html)

Textarea content into DB - El Forum - 11-29-2010

Hi guys,

I've been looking all day and I have not been able to find an answer to my question. I apologize if I didn't look well enough.

I'm trying to insert a textarea text into my DB(mysql) through the post method but it keeps returning '0' inside my database. I've set the type in my db to 'text'. What gives? Is there any kind of conversion I must do?

It would help me tremendously if you could also post where I could find the answer to such a question in the future. I've looked in the documentation but I'm unsure.

Thanks in advance.


Textarea content into DB - El Forum - 11-29-2010

I have done this, but as I remember there is nothing different from inserting data from input fields. Does inserting from input fields works well?

edit: you can try echo $this->db->last_query() to check what query do you get.