codingneter in insert data and get id
function add_post($post_data){
$this->db->insert('posts', $post_data);
$insert_id = $this->db->insert_id();
return $insert_id;
} $this->db->insert('posts', $post_data);
$insert_id = $this->db->insert_id();
return $insert_id;
Also in PHP:
- Use Laravel for server
- does php reverse array function
- create project in laravel 8 command
- check which database connect laravel
- deprcation problem phpmyadmin ubuntu
- create new file in folder php
- PHP Html-Optimizer on github
- datetime php difference in days
- clean routes cache laravel
- find position of character in string php
- ALL CODE FOR DATABASE PHP
- check string pos
- composer artisan
- artisan db:seed
- check string for value php
- composer laravel project
- check version of php using composer
- Class 'Pusher' not found
- How to use mbstring on Heroku (PHP)
- echo fread($myfile,filesize("webdictionary.txt"));
- decode Base64 File php
- composer install laravel
- date u 1 day php
- does array have key php