CodeIgniter 4 CRUD Series with MySQL: Read

Joshua Otwell
Level Up Coding
Published in
5 min readSep 9, 2021

--

In the post, CodeIgniter 4 CRUD Series with MySQL: Create, I covered creating new rows of data in a MySQL database table using the CodeIgniter\Model built-in insert() method. There was quite a lot of boilerplate needed for setup to get the project off the ground and running.

This second post should be more direct with all the base scaffolding in place and taken care of.

Reading Data

Now that project data exists in the database, chances are someone will want to see it. Typically, reading the data is…

--

--

SQL | PHP | Photography. Sign-up for my free developer newsletter, OpenLampTech, here: openlamptech.substack.com