Welcome Guest, Not a member yet? Register   Sign In
Codeigniter's active record ignoring everything after “/”
#1
Sad 

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
Reply


Messages In This Thread
Codeigniter's active record ignoring everything after “/” - by avinashizhere - 09-06-2016, 08:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB