Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to use join query in codeigniter

public function getdata(){	

	$this->db->select('*');
	$this->db->from('table1'); // this is first table name
	$this->db->join('table2', 'table2.id = table1.id'); // this is second table name with both table ids
	$query = $this->db->get();
	return $query->result();

	}
Comment

PREVIOUS NEXT
Code Example
Php :: php artisan serve specify ip 
Php :: wordpress get username 
Php :: hashing passwords in yii 1 
Php :: codeigniter get num_rows 
Php :: php sha256 
Php :: var_dump beautifier 
Php :: show php erros 
Php :: php get ip address of visitor 
Php :: public laravel htaccess 
Php :: laravel collection toArray 
Php :: integer default value laravel 
Php :: wordpress post date 
Php :: codeigniter 3 insert 
Php :: the configuration file now needs a secret passphrase (blowfish_secret) 
Php :: default php timezone to newyork 
Php :: php artisan migrate nothing to migrate 
Php :: php exit foreach 
Php :: php ping time 
Php :: cakephp 404 exception 
Php :: laravel change column type 
Php :: python truncate file contents 
Php :: increase xampp phpmyadmin import limit 
Php :: carbon time ago laravel 
Php :: alert php 
Php :: Find out how many years there are in php between years 
Php :: laravel http request plain text 
Php :: php array_sum 
Php :: php add year to date 
Php :: Internal error: xmlSchemaDocWalk, calling xmlSchemaValidateElem(). 
Php :: Replicating claims as headers is deprecated and will removed from v4.0. Please manually set the header if you need it replicated.", 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =