Search code examples
GROUP BY column prefix and COUNT() per group with CodeIgniter's query builder...


phpcodeignitergroup-byquery-buildercounting

Read More
Writing a SUBSTRING() call in CodeIgniter's select() method renders SQL with corrupted quotes...


phpcodeigniterselectquery-builderquoting

Read More
CodeIgniter query builder with multiple OR LIKE conditions on a single column and other separated AN...


phpcodeigniterwhere-clausequery-builderlogical-grouping

Read More
CodeIgniter query WHERE clause with enclosed OR conditions and AND other conditions...


phpcodeigniterwhere-clausequery-builderlogical-grouping

Read More
SELECT rows with specific combinations of values in two columns using CodeIgniter's query builde...


phpcodeigniterwhere-clausequery-builderlogical-grouping

Read More
JOIN two tables using a linking table with CodeIgniter's query builder...


phpmysqlcodeigniterjoinquery-builder

Read More
Get all records created more than 24 hours ago using CodeIgniter's query builder...


phpdatetimecodeigniterwhere-clausequery-builder

Read More
GROUP BY and LIMIT per group and SELECT limited aggregate values per group with CodeIgniter's qu...


phpmysqlcodeigniteraggregate-functionsquery-builder

Read More
CodeIgniter query builder script to GROUP BY two columns, then COUNT(), SUM(), and CONCAT() in the S...


phpmysqlcodeigniteraggregate-functionsquery-builder

Read More
unable to count the result with a condition using codeigniter query...


phpmysqlcodeignitercountquery-builder

Read More
Output the results of the SQL query in CodeIgniter is not displaying...


phpcodeignitermodel-view-controllerquery-builderresultset

Read More
Get unlimited row count and paginated results from the database using CodeIgniter...


phpcodeigniterpaginationcodeigniter-3query-builder

Read More
How to get the SQL string from $this->db->insert('history', $data) is building and sen...


phpcodeigniterquery-builderdiagnostics

Read More
Using count_all_results or get_compiled_select and $this->db->get('table') lists table...


phpmysqlcodeignitercachingquery-builder

Read More
How to count the number of records in a database table meeting a condition using CodeIgniter's q...


phpcodeignitercountcodeigniter-3query-builder

Read More
SELECT rows WHERE column value matches values in a flat array using CodeIgniter's query builder...


phpmysqlcodeigniterquery-builderwhere-in

Read More
JOIN tables and create a comma-separated string of aggregate data with CodeIgniter's query build...


phpmysqljoincodeigniter-3query-builder

Read More
SELECT all rows and count rows using CodeIgniter's query builder with just one method to the dat...


phpcodeignitercodeigniter-3query-builderresultset

Read More
CodeIgniter's count_all() doesn't respect the conditions in the built WHERE clause...


phpmysqlcodeignitercountquery-builder

Read More
GROUP BY and COUNT() with and without a condition using CodeIgniter's query builder...


phpmysqlcodeignitercountquery-builder

Read More
Join two tables with a one-to-many relationship without duplicating each parent record with CodeIgni...


phpcodeigniterjoinone-to-manyquery-builder

Read More
SELECT rows with current term number AND the latest N rows with the previous term number using CodeI...


phpmysqlcodeignitergreatest-n-per-groupquery-builder

Read More
How to write a CASE statement in a WHERE clause using CodeIgniter's query builder...


phpmysqlcodeignitercasequery-builder

Read More
Codeigniter query error: "In aggregated query without GROUP BY, expression #1 of SELECT list co...


phpcodeignitergroup-byquery-builder

Read More
CodeIgniter query builder script to GROUP BY gender and COUNT() rows in a table...


phpcodeignitergroup-bycountquery-builder

Read More
Retrieve records from database by passing an array...


phpmysqlcodeigniterquery-builderwhere-in

Read More
How to use a column of results from one query in the next query using CodeIgniter's query builde...


phpcodeignitercodeigniter-3query-builderwhere-in

Read More
What is the purpose of the CodeIgniter's get() active record method?...


phpcodeignitermethodsactiverecordquery-builder

Read More
How to execute a SELECT query via CodeIgniter's query builder without passing a statically true ...


phpmysqlcodeigniterwhere-clausequery-builder

Read More
Refactor Codeigniter model to custom calculate a dynamic set of column values for a dynamic set of i...


phpcodeignitermodelrefactoringquery-builder

Read More
BackNext