CodeIgniter Forums
how to display the elements of multi-dimensional array in view file using CodeIgniter?? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: how to display the elements of multi-dimensional array in view file using CodeIgniter?? (/showthread.php?tid=19969)



how to display the elements of multi-dimensional array in view file using CodeIgniter?? - El Forum - 06-24-2009

[eluser]aamiraziz[/eluser]
http://pastebin.com/d3e4509a6


how to display the elements of multi-dimensional array in view file using CodeIgniter??


Respected helpers,

i am working on job portal. i have a problem in showing CV information details.

i have different tables like general information, educational information, experience information to store the data data of CV, which user has entered.

now i like to display all the records of specific user in these table on one view page.

i have an array that i have passed to a view file i.e

$data = array(
"ginfo" => $ginfo, // array containing single record of database table
"eduinfo" => $edu, // array containting Multiple records of database table
"expinfo" => $exp, // array containting Multiple records of database table
);

$this->load->view('showcv', $data); // Loads the page on which CV is Printed.


now i dun' t know that how can i display the value of every column of these tables.

Thanks for reading my problem

If you have any suggestion to solve this problem please help me. i' ll be very thankful to you.


how to display the elements of multi-dimensional array in view file using CodeIgniter?? - El Forum - 06-24-2009

[eluser]TheFuzzy0ne[/eluser]
Can you not just use a foreach loop? I can't really give any moe information than that, since the information you've posted about your dataset is quite limited.