Fatal error: Call to undefined function getUserId()

here is the error im getting:

Fatal error: Call to undefined function getUserId() in /home/content/q/u/a/qualitygoods11/html/general_showsnevents.php on line 4

Here is the php code
[php]

  	<div class="mod-login">
<?php if(getUserId()){ ?>
  		Logged in as <?php echo get_logued_username() ?> - <a href="general_logout.php">Logout</a>
  		<br />
  		Not <?php echo getUserName() ?>? <?php } ?><a href="general_login.php">Sign in here</a>
        <?php if(!getUserId()){ ?>  
        <br /><br />
        <?php } ?>	  	</div>

  	<!--/login-->[/php]

any help would be appreciated

Hi there,

I’m afraid we’re going to need the bigger picture. Are you including the file that defines this function? If so is it within a class - if it you will need to call it like: $classname->function().

Any more information on where this function comes from, what it does, your file arrangements so far etc as mentioned above will make it much easier for us to help you on this.

Sponsor our Newsletter | Privacy Policy | Terms of Service