How to display same table but different column in one row?

Firstly, create a model. As the example below, I created new model called "Payroll_model". Inside the model, make array for the data that you want to display and make SQL statement as example below :



Next, at the controller, you can call back the previous model :


At the view, you must do a looping and call the array from the controller 
so that all the data can be display.



Comments

Popular posts from this blog

What is getnada?

What is Git?

POP3 vs IMAP