CodeIgniter Forums
Textarea content into DB - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Textarea content into DB (/thread-36346.html)



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

[eluser]sas1ni69[/eluser]
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.


Sas1ni69


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

[eluser]SPeed_FANat1c[/eluser]
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.