• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issues with code

#7
(06-13-2019, 06:20 AM)jfri Wrote:
(06-12-2019, 09:47 AM)Mekaboo Wrote:
(06-11-2019, 10:56 PM)Wouter60 Wrote: What php error messages do you get, and what are the line numbers they refer to?
Without that information, it's impossible to help you.

The error I would get is "Undefined variable" and it went with this line:

    <a href="<?php print site_url() ?>profile"><?php print $userInfo['full_name']; ?></a>

As well as lines like it. I thought of deleting the php part but O felt it would be wrong of me to do so..

Can you do this?
PHP Code:
<?php 
var_dump
($userInfo);
?>

Is the error also on this line? If not, what is the content of the variable? Maybe the index 'full_name' is not set. If the error is there, define the variable $userInfo

That's where the error is. I'm going to try your suggestion and see if it works Heart
Reply


Messages In This Thread
Issues with code - by Mekaboo - 06-11-2019, 09:04 PM
RE: Issues with code - by Wouter60 - 06-11-2019, 10:56 PM
RE: Issues with code - by Mekaboo - 06-12-2019, 09:47 AM
RE: Issues with code - by InsiteFX - 06-12-2019, 03:40 AM
RE: Issues with code - by Mekaboo - 06-12-2019, 09:48 AM
RE: Issues with code - by jfri - 06-13-2019, 06:20 AM
RE: Issues with code - by Mekaboo - 06-13-2019, 06:55 PM
RE: Issues with code - by InsiteFX - 06-14-2019, 03:39 AM
RE: Issues with code - by Mekaboo - 06-16-2019, 08:23 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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