codeigniter insert id
$id = $this->db->insert_id(); $this->db->insert('posts', $post_data);
$insert_id = $this->db->insert_id();
return $insert_id; $db = db_connect();
$query = $db->query("SELECT * FROM users ORDER BY id DESC LIMIT 1");
$result = $query->getRow();function add_post($post_data){
$this->db->insert('posts', $post_data);
$insert_id = $this->db->insert_id();
return $insert_id;
}
Also in PHP:
- clear the saved cache of my laravel websitefor all the users
- array_search in php
- create seeders in laravel 8
- exception php
- array_unique in laravel collection
- basic php
- find a file in php
- check if string contains substring php 8
- date du joure n php
- composer with specific php version
- [WAR] 70 (lib\peer.php:164) file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
- cron.php
- base64_decode image string php
- check if array is empty php
- create laravel application with composer
- display files with php
- disable base64 decode php.ini
- eloquent limit vs take
- artisan list routes
- consol log put in php
- .htaccess codeigniter
- date time pph
- Laravel display the date the participation was created
- array unique in laravel