Jump to content

[SOLVED] Cant See A Parse Error :(


herghost

Recommended Posts

Hi All,

 

can someone point out what ive forgotten to close in this? I am getting an error on line 40, which is the last line:

 

 

<?php
session_start();
require 'database.php';

$nuser=$_SESSION['user'];
$auser=$_SESSION['admin'];

if($nuser)
{
$userfinal=$nuser;
}

elseif($auser)
{
$userfinal=$auser;
}

if(isset($userfinal))
{

$username = $_GET['username'];
$user = mysql_query("SELECT * FROM user WHERE username = '$username'");
$user=mysql_fetch_assoc($user);
if($user['level'] > 1)


{
die("You cant view an Admins profile!");
}

echo "<h1>User Info</h1>";

echo "<b>Username:".$user['username']."<br>";

echo "<br>";
  echo '<form name="backlistfrm" method="post" action="members.php">';
echo '<input type="submit" value="Back to The List">';
echo '</form>';
echo "<br>";
?>

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/152677-solved-cant-see-a-parse-error/
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.