Welcome Guest, Not a member yet? Register   Sign In
Issues with code
#6

(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
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



Theme © iAndrew 2016 - Forum software by © MyBB