Jump to content

Stumped. Please help!


carylson

Recommended Posts

Returns the following error:

Parse error: syntax error, unexpected '[', expecting ',' or ';' in /hsphere/local/home/dtsabai/parrecsol.com/cp/index.php on line 47

 

The Code:

<?php

include("top.php");

 

if ($_SESSION['LoggedIn'] != True) {

$_SESSION['msg'] = "Please login before accessing your account.";

header('Location: login.php');

}

 

if ($_SESSION['AdminLevel'] == "Full") {

$SelectorFilter = " WHERE Status = 'Open'";

}

else {

$SelectorFilter = " WHERE Status = 'Open' AND UserID = ". $_SESSION['ID'];

}

 

if ($_REQUEST['fcn'] == "updateinfo") {

if ($_REQUEST['frmPassword'] != "" && $_REQUEST['frmEmail'] != "") {

$UpdateInfoSQL = "UPDATE Users SET Password = '". $_REQUEST['frmPassword'] ."', Email = '". $_REQUEST['frmEmail'] ."' WHERE ID = ". $_SESSION['ID'];

mysql_query($UpdateInfoSQL);

 

$_SESSION['msg'] = "Information updated successfully.";

header('Location: index.php');

}

else {

$_SESSION['msg'] = "Inclomplete form.  Please fill out all fields and try again.";

header('Location: index.php');

}

}

 

$UserInfoSQL = "SELECT * FROM Users WHERE ID = ". $_SESSION['ID'];

$UserInfo = mysql_fetch_array(mysql_query($UserInfoSQL));

 

if (isset($_SESSION['msg'])) {

echo "<p align=center><font color=red><strong>". $_SESSION['msg'] ."</strong></font></p>";

$_SESSION['msg'] = "";

}

?>

...A bunch of HTML here...  Line 47 snippet below.

 

Line 47:

<td width="400px"><?=UserInfo['ID']?></td>

 

 

This problem is driving me crazy so if anybody has any suggestions it would be greatly appreciated!

Aaron

Link to comment
https://forums.phpfreaks.com/topic/84185-stumped-please-help/
Share on other sites

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.