Search
 
SCRIPT & CODE EXAMPLE
 

PHP

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);      
           }
       }
Comment

PREVIOUS NEXT
Code Example
Php :: php lcfirst 
Php :: how to refresh php page automatically 
Php :: php explode sentence into words 
Php :: laravel CORS config `allowed_origins` should be an array 
Php :: return ob_start 
Php :: laravel api 
Php :: php number multiple of 
Php :: laravel one to many relationship 
Php :: how to extract data from json in php 
Php :: laravel where and blade 
Php :: laravel has many limit 
Php :: how to change validation message in laravel 
Php :: php mysqli insert name adress 
Php :: match uuid patter laravel regex 
Php :: add floater to open a modal in wordpress 
Php :: Show All Categories as Links 
Php :: how to import in laravel excel command 
Php :: php remove non printable characters 
Php :: get posts with multiple meta value in wordpress 
Php :: install composer laravel 
Php :: wc php get product id image gellery 
Php :: where statement multiple argument in codeigniter 
Php :: laravel list all tbales 
Php :: laravel @class 
Php :: add class to row laravel 
Php :: woocommerce_product_is_on_sale filter 
Php :: How to run PHP script every 5 minutes 
Php :: how to add files in child theme in theme editor 
Php :: php preg match 
Php :: Define memory limit in PHP 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =