• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cant display a field in view file

Hi, I am trying to display a specific field in a view file but nothing is displayed!

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

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

Cant figure out why the location field isn't work


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?

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.