CodeIgniter Forums
Codeigniter's active record ignoring everything after “/” - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Codeigniter's active record ignoring everything after “/” (/showthread.php?tid=66112)



Codeigniter's active record ignoring everything after “/” - avinashizhere - 09-06-2016

issue

User inputs data like a/b

code we use to save the data

PHP Code:
<?php
    $text 
$this->input->post('user_input');
 
   $data = array('text'=>$text);
 
   $this->db->insert('table_name',$data);
?>

problem

data which is saved in the database is a/ nothing after / data after / is not saved in the db

note

db column size is not any issue since it is varchar and size 10


RE: Codeigniter's active record ignoring everything after “/” - InsiteFX - 09-06-2016

I' am running CI 3.1 with Query Builder and it works fine for me so you must have some other problem in your code.

Mine is used in my drag & Drop Menu Manager and it will save a / to the database varchar field.


RE: Codeigniter's active record ignoring everything after “/” - avinashizhere - 09-06-2016

maybe i should give an update :|