plugins - Impresspages Data Grid Trouble -
i data grid implemented in impresspages admin environment. form has date fields. problem following. entered date storage in mysql (and logically returned too) 000-00-00. caught public function createdata($postdata)
1 field in grid , content correct, fields value right. let's see:
array(12) { ["securitytoken"]=> string(32) "b9d273d7f6f17a43eacb61a008543d21" ["antispam"]=> array(2) { [0]=> string(0) "" [1]=> string(32) "692a03a931157644de8a0986ebfa54ea" } ["active"]=> string(1) "1" ["starsign"]=> string(2) "22" ["startperiod"]=> string(10) "2015-04-25" ["endperiod"]=> string(10) "2015-04-25" ["prevlove"]=> string(25) "dsdsds" ["prevhealth"]=> string(25) "asasas" ["prevbiz"]=> string(27) "lklklklk" ["prevlucky"]=> string(27) "fgfgfgfg" ["languageid"]=> string(1) "2" ["createdat"]=> string(19) "2015-04-22 14:02:37" }
look @ fields startperiod , endperiod. in data array set real values typed: 2015-04-22, stored in db weird value 0000-00-00. idea, please? thanks.
check camelcase issue. maybe in database fields not in same upper/lower case. issue if migrate database between windows/unix. make user config same , don't have mistype.
you 0000-00-00 on mysql field when provide incorrect value or don't provide value , field set not null.
i never got such issue date field.
Comments
Post a Comment