Welcome Guest, Not a member yet? Register   Sign In
how to read array value
#1

[eluser]cyberizal[/eluser]
if im using model to read all my table data into array, then how do i get one of the array value inside my array

for example

im using foreach, loop and restore all my row of data into results[];

in my controller i read my array from mt below model

assume in my controller my code is like below

$this->student_module_model->student_module_edit($STUDENT_AUTO_ID);

student_module_edit($STUDENT_AUTO_ID) shall return array all my row of data

how do i read one column on only, for example, i want STUDENT_NAME only instead of ID OR ADDRESS..

thanks guys
#2

[eluser]Dam1an[/eluser]
would it not jst be
Code:
$my_array['student_name']
in the body of the foreach loop?
#3

[eluser]cyberizal[/eluser]
thanks bro. forgot to say thanks




Theme © iAndrew 2016 - Forum software by © MyBB