08-29-2010, 07:41 AM
[eluser]saymes[/eluser]
When i enter the data to the base With
the following Code :
$data = array(
'title' => $title ,
'from_main_section' => '0'
);
$this->db->insert('section', $data);
its Giving me an error :
A Database Error Occurred
Error Number: 1048
Column 'from_main_section' cannot be null
INSERT INTO `myforum_section` (`title`, `from_main_section`) VALUES ('test forum', NULL)
I want value to be 0 not NULL
Please help me and Thank you
When i enter the data to the base With
the following Code :
$data = array(
'title' => $title ,
'from_main_section' => '0'
);
$this->db->insert('section', $data);
its Giving me an error :
A Database Error Occurred
Error Number: 1048
Column 'from_main_section' cannot be null
INSERT INTO `myforum_section` (`title`, `from_main_section`) VALUES ('test forum', NULL)
I want value to be 0 not NULL
Please help me and Thank you