Parse error: syntax error, unexpected ';'

Posted by sufoid on Stack Overflow See other posts from Stack Overflow or by sufoid
Published on 2010-03-20T10:15:39Z Indexed on 2010/03/20 10:21 UTC
Read the original article Hit count: 243

Filed under:
|

Hallo

I have this script:

<?
  require("lib2/config.inc.php");
  require("lib2/tpl.class.php");
  require("lib2/db.class.php");
  require("lib2/um.class.php");


  $tpl          = new template("templates", "tpl");
  $db         = new db($db['location'], $db['username'], $db['passwort'], $db['database']);
  $um         = new usermanagment();


  /** User login **/

  $checklogin       = $um->check_login();
  $userdata       = $um->getuserdata();

  if(!$checklogin && !$guest) {
    header("LOCATION: ./index2.php");
  }

  eval("\$header .= \" ".$tpl->get("header")."\";");
  eval("\$footer .= \" ".$tpl->get("footer")."\";");

$time     = time();
$db->Query("UPDATE userdaten SET lastaction = '$time' WHERE userid = '".$userdata['userid']."'");
?>

And get this error: Parse error: syntax error, unexpected ';' in /home/httpd/html/login/global.php(22) : eval()'d code on line 96

Any ideas?

© Stack Overflow or respective owner

Related posts about error

Related posts about php