Welcome Guest, Not a member yet? Register   Sign In
Cant display a field in view file
#1

[eluser]margsot[/eluser]
Hi, I am trying to display a specific field in a view file but nothing is displayed!

The code i use is this
Code:
<p>&lt;?php echo $userDetails['location']; ?&gt;</p>

One line above the code
Code:
<p>&lt;?php echo $userDetails['description']; ?&gt;</p>
works fine.

Cant figure out why the location field isn't work

Thanks
#2

[eluser]niki_mihaylov[/eluser]
Hey, can you try var_dumping $userDetails and see if you have value for "location" , perhaps there is something wrong/missing in your query or wherever you pull info from?
#3

[eluser]margsot[/eluser]
SOLVED! i forgot to set location in array Smile




Theme © iAndrew 2016 - Forum software by © MyBB