• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Textarea content into DB

#1
[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

#2
[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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.