Search
 
SCRIPT & CODE EXAMPLE
 

PHP

codeigniter 3 insert

$data = array(
        'title' => 'My title',
        'name' => 'My Name',
        'date' => 'My date'
);

$this->db->insert('mytable', $data);
// Produces: INSERT INTO mytable (title, name, date) VALUES ('My title', 'My name', 'My date')
Comment

PREVIOUS NEXT
Code Example
Php :: current timestamp carbon 
Php :: 419 unknown status 
Php :: laravel password verification 
Php :: parsefloat php 
Php :: migrate symfony command 
Php :: total no of occurances in string php 
Php :: remove storefront footer 
Php :: htaccess replace url parameter with slash prameter 
Php :: carbon day 30 days ago 
Php :: preg_replace remove double quotes 
Php :: group by laravel 
Php :: General error: 1215 Cannot add foreign key constraint laravel 
Php :: usleep php 
Php :: get domain from subdomain php 
Php :: php reload current page 
Php :: php grab year from date 
Php :: check if array has value php 
Php :: php print top n of array 
Php :: ext-dom php 7.2 
Php :: unset _post 
Php :: Load order by entity_id magento 2 
Php :: laravel get query output 
Php :: how to create a new component in laravel 
Php :: laravel destroy session 
Php :: wherebetween in laravel 
Php :: add column in laravel migration cmnd 
Php :: admin bar hide wordpress 
Php :: combine array except common ones php 
Php :: foreign key nullable in laravel 
Php :: how to set session timeout in codeigniter 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =