Search
 
SCRIPT & CODE EXAMPLE
 

PHP

search and pagination in ci4

if (isset($_POST['search']) && !empty($_POST['search'])) {
		$builder->like('name',$_POST['search']);
Comment

search and pagination in ci4

<?php namespace AppDatabaseMigrations;

use CodeIgniterDatabaseMigration;

class CreateUsersTable extends Migration
{
    public function up() {
       $this->forge->addField([
          'id' => [
              'type' => 'INT',
              'constraint' => 5,
              'unsigned' => true,
              'auto_increment' => true,
          ],
          'name' => [
              'type' => 'VARCHAR',
              'constraint' => '100',
          ],
          'email' => [
              'type' => 'VARCHAR',
              'constraint' => '100',
          ],
          'city' => [
              'type' => 'VARCHAR',
              'constraint' => '100',
          ],
       ]);
       $this->forge->addKey('id', true);
       $this->forge->createTable('users');
    }

    //--------------------------------------------------------------------

    public function down() {
       $this->forge->dropTable('users');
    }
}
Comment

PREVIOUS NEXT
Code Example
Php :: codeigniter email validate and dublicate from database in php 
Php :: one-through-many 
Php :: PHP str_getcsv — Parse a CSV string into an array 
Php :: php get cookie by name preg_match 
Php :: how to disable laravel cors 
Php :: how to change css during holidays with php or Javascript in wordpress 
Php :: how can i get input id in laravel 8 
Php :: php is_a 
Php :: backend/web/index.php when deploying 
Php :: php loop array PDO remove keys 
Php :: how to cooncet dabase eith laraavel 
Php :: laravel repository error 
Php :: @sectionMissing 
Php :: php hide credit card middle numbers 
Php :: Ajouter un texte par défaut sur toutes vos publications WordPress 
Php :: gd2 image resizing library in codeigniter 
Php :: Assignment By Reference 
Php :: id de sesion php 
Php :: model coomad laravel 
Php :: 0 
Php :: traduction website 
Php :: debugger not installed phpstorm 
Php :: show number 1 as 00001 laravel 
Php :: Primary Termlaravel recursive relationships 
Php :: how to link a external modules using href in php 
Php :: can we generate alphanumeric 6 digit primary key in phpmyadmin 
Php :: PHP: how to "clone from" another object of same class 
Php :: pass address of array in php 
Php :: laravel return new tab 
Php :: php loop add class to first element 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =