Welcome Guest, Not a member yet? Register   Sign In
how to display the elements of multi-dimensional array in view file using CodeIgniter??
#1

[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.
#2

[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.




Theme © iAndrew 2016 - Forum software by © MyBB