• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.