Answers for "insert array values in database using codeigniter"

PHP
0

insert array values in database using codeigniter

$inputdata=$this->input->post();

$phone=array($inputdata['phone']);
       
       foreach($phone as $arr)
       {
           $phoneNo=$arr;

           $f=count($phoneNo);
           
           for($i=0;$i<$f;$i++)
           {
              $arre=[
                  'phone'=>$phoneNo[$i],
                     ]; 
                  
              $insertB= $this->user_model->userdata($arre);      
           }
       }
Posted by: Guest on June-16-2021

Code answers related to "insert array values in database using codeigniter"

Browse Popular Code Answers by Language