S
S
semki0962016-06-08 11:49:18
PHP
semki096, 2016-06-08 11:49:18

How to form a join query to the database to display unrelated data as well?

Such a query outputs a string and blocks within it. If there are no blocks, the line is not displayed. How can I make an empty line also displayed?

$this->db->from('blocs');
$this->db->join('rows', 'rows.id = blocs.id');

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
Urvin, 2016-06-08
@semki096

right outer join

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question