Mysql
 sql >> Datenbank >  >> RDS >> Mysql

AngularJS | So senden Sie die Daten von Json an die Datenbank in Codeigniter

public function angform()
    {
        $get=file_get_contents('php://input');
        $json_get=json_decode($get);
        foreach($json_get as $key=>$value){              
         $data[$key]=$value; //Worked For Me.
        }

        $this->load->model('datamodel');
        $this->datamodel->insert($data);
        }