Jump to content

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,

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.