Welcome Guest, Not a member yet? Register   Sign In
Column cannot be null
#4

This is weird, in CI3 when I check the output of this array, :
PHP Code:
$biz=$this->get_form_data(); 

var_dump('$biz');

array(
28) { ["city_id"]=> string(1"3" 
    
["district_id"]=> string(2"24" 
    
["addrs1"]=> string(13"2646 Gand Ave" 
    
["zipcode"]=> string(5"15400" 
    
["catid_1"]=> string(2"50" 
    
["catid_2"]=> string(2"56" 
    
["price"]=> string(0"" 
    
["tel"]=> string(0"" 
    
["title"]=> string(10
    
"Test title" ["about"]=> string(20"This is just testing" 
    
["fuel"]=> NULL ["kilo"]=> NULL ["carburant"]=> NULL 
 


But with CI 2.2.1 this part is different
PHP Code:
["fuel"]=> NULL ["kilo"]=> NULL ["carburant"]=> NULL 

Here is a full output,
PHP Code:
array(28) { ["city_id"]=> string(1"3" 
    
["district_id"]=> string(2"24" 
    
["title"]=> string(10"Test title" 
    
["addrs1"]=> string(13"2646 Gand Ave" 
    
["zipcode"]=> string(5"15400" 
    
["catid_1"]=> string(2"50" 
    
["catid_2"]=> string(2"56" 
    
["fuel"]=> bool(false) ["kilo"]=> bool(false) ["carburant"]=> bool(false
// So on 

CI 2.2.1
PHP Code:
["fuel"]=> bool(false) ["kilo"]=> bool(false) ["carburant"]=> bool(false

CI3
PHP Code:
["fuel"]=> NULL ["kilo"]=> NULL ["carburant"]=> NULL 

Is this related to CI3 database changes?
Reply


Messages In This Thread
Column cannot be null - by rocks - 02-20-2015, 01:00 PM
RE: Column cannot be null - by Avenirer - 02-20-2015, 01:56 PM
RE: Column cannot be null - by rocks - 02-20-2015, 02:05 PM
RE: Column cannot be null - by rocks - 02-23-2015, 12:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB