Welcome Guest, Not a member yet? Register   Sign In
Work with result in controller
#3

[eluser]MaxEisley[/eluser]
It doesnt work:
Code:
$customer = $this->data_model->checkcustomer($this->input->post('Phone'), $this->input->post('Email'), $this->input->post('FirstN'), $this->input->post('SecondN'));

if($customer->zakaznikID == '') {
              $id_customer = $this->data_model->createcustomer($this->input->post('Phone'), $this->input->post('Email'), $this->input->post('FirstN'), $this->input->post('SecondN'), $id_address);
        }
        
        else {
          $id_customer = $customer->zakaznikID;
        }

It still writes Trying to get property of non-object
on line: if($customer->zakaznikID == '') {


Messages In This Thread
Work with result in controller - by El Forum - 04-28-2011, 02:34 PM
Work with result in controller - by El Forum - 04-28-2011, 03:16 PM
Work with result in controller - by El Forum - 04-28-2011, 03:24 PM
Work with result in controller - by El Forum - 04-28-2011, 04:27 PM
Work with result in controller - by El Forum - 04-29-2011, 01:32 AM
Work with result in controller - by El Forum - 04-29-2011, 01:49 AM
Work with result in controller - by El Forum - 04-29-2011, 06:49 AM
Work with result in controller - by El Forum - 04-29-2011, 12:34 PM
Work with result in controller - by El Forum - 04-30-2011, 04:51 PM
Work with result in controller - by El Forum - 05-03-2011, 05:15 PM
Work with result in controller - by El Forum - 05-04-2011, 09:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB