Jump to content

syntax error, unexpected T_IS_EQUAL HELP! HELP!


dewey_witt

Recommended Posts

If anyone see's what the heck is going on here I'd gladly appriciate a reply. And Thanks in advance :)

 

The Error:

Parse error: syntax error, unexpected T_IS_EQUAL in C:\webs\test\header.php on line 6

 

 

<?php

session_start();


if($_SESSION['SESS_CHANGEID']) == TRUE)
{
session_unset();
session_regenerate_id(); // This Line does not show as valid code either.
}
require("config.php");
$db = mysql_connect($dbhost, $dbuser, $dbpassword);
mysql_select_db($dbdatabase, $db);

?>

Im not seeing it  :-\

There is unexpected closing in your if condition. modify your code with the following block

 

if($_SESSION['SESS_CHANGEID'] == TRUE)
{
session_unset();
session_regenerate_id(); // This Line does not show as valid code either.
}
require("config.php");
$db = mysql_connect($dbhost, $dbuser, $dbpassword);
mysql_select_db($dbdatabase, $db);

 

Hope this will help.

Regards,

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.