Tag Archives: Result

Best CodeIgniter Web Hosting

Best CodeIgniter Web Hosting

Unlike other PHP frameworks, CodeIgniter has a very light footprint and is more flexible in terms of web hosting requirements. As a result, CodeIgniter allows you to run off pretty much any standard PHP hosting package (running off either Linux or Windows). The only thing that you should consider is then your own site’s traffic [...]

Continue reading...

How To Fill a HTML Dropdown With Database Results in Code Igniter

How To Fill a HTML Dropdown With Database Results in Code Igniter

In Code Igniter, you can retrieve database results and format the data so that it appears in a HTML dropdown list automatically. Here’s how to do this: First, you’ll need to edit your model class. Here, you’ll see that we have a method named “get_dropdown()” that will basically query our database table for a set [...]

Continue reading...

Difference Between Row, Result, and Result_array in CodeIgniter

Difference Between Row, Result, and Result_array in CodeIgniter

There are 3 methods that allow you to retrieve data from a database within CodeIgniter: row(), result(), and result_array(). However, there’s a difference as to how you should reference the values that you obtain with these methods, as row() and result() return objects, but result_array() returns an array. Here’s a typical example of how you [...]

Continue reading...