make table with sql data and php |
Hello,
I am tasked to display data from sql db in a table on the web with following information, 2014 2015 2016 2017 ABC 415 232 45 445 DEF 315 815 515 GHI 243 256 221 455 I have to get this from a table with select query and display it as above using Php. Any help would be appreciated. Thanks.
HI,
I assume your table layout is something like this: - name - 2014 - 2015 - 2016 - 2017 So the code could look like this: PHP Code: <?php Controller: PHP Code: <?php Then you can create a view called test.php in your view folder with the below: PHP Code: <!DOCTYPE html> ps: i would not name my columns with numbers
Or just use this.
CodeIgniter Users Guide - HTML Table Class What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |