Given the code below:

<?
   session_start();
   include("miscfunc.php");
   $loggedin = get_var("loggedin");
   
   if (!isset($loggedin)) //Security code goes here
   {
      print "Not logged in.<br><br>\n";
      include("index.php");
   }
   else
   {
      include("dbconnect.php");
      .
      .
      .
   }
?>

I'm getting this error:

Fatal error: Call to undefined function get_var() in
/home/festival/webspace/html/dbconnect.php on line 3

Why is it that dbconnect.php that I'm including cannot make use of
get_var() (included from miscfunc.php)?  Every other .php file in this
project does this exact same thing perfectly.  Why is this particular
script giving this error?  






Community email addresses:
  Post message: php-list@yahoogroups.com
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/php-list/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to