Welcome Guest, Not a member yet? Register   Sign In
Why my empty array still inserts into the my db table?
#4

[eluser]xeroblast[/eluser]
try:
Code:
if ($this->input->post('report_no')) $data['report_no']=$this->input->post('report_no');
if ($this->input->post('reporting_unit')) $data['reporting_unit']=$this->input->post('reporting_unit');
if ($offense) $data['offenses_committed']=$offense;


Messages In This Thread
Why my empty array still inserts into the my db table? - by El Forum - 11-08-2012, 10:55 PM
Why my empty array still inserts into the my db table? - by El Forum - 11-08-2012, 11:15 PM
Why my empty array still inserts into the my db table? - by El Forum - 11-08-2012, 11:42 PM
Why my empty array still inserts into the my db table? - by El Forum - 11-08-2012, 11:58 PM
Why my empty array still inserts into the my db table? - by El Forum - 11-09-2012, 12:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB