Micro Sniff
New member
I have a PHP code for a member profile below.
<?php
session_start();
include("scripts/database.php");
include("scripts/login.php");
$username=$_GET['username'];
$sql="SELECT * FROM users WHERE username='$username'";
$result=mysql_query($sql);
while($rows=mysql_fetch_array($result)){
?>
<html>
<head>
<title>Home</title>
<link rel="shortcut icon" href="images/favicon.ico">
<link type="text/css" href="css/default.css" rel="stylesheet">
</head>
<body>
<?php
if($logged_in){
echo $headerin;
echo '<center><div id="content">The user you click on was '.$rows['username'].'. More profile information will be coming soon.</div></center>';
echo $footer;
}
else{
echo $headerout;
echo '<center><div id="content">The user you click on was '.$rows['username'].'. More profile information will be coming soon.</div></center>';
echo $footer;
}
?>
</body>
</html>
And I keep getting this error message.
Parse error: syntax error, unexpected $end in /home/content/35/6821535/html/frsdb/member.php on line 33
Could anyone take a look at the code and tell me what is wrong? I can't find anything.
<?php
session_start();
include("scripts/database.php");
include("scripts/login.php");
$username=$_GET['username'];
$sql="SELECT * FROM users WHERE username='$username'";
$result=mysql_query($sql);
while($rows=mysql_fetch_array($result)){
?>
<html>
<head>
<title>Home</title>
<link rel="shortcut icon" href="images/favicon.ico">
<link type="text/css" href="css/default.css" rel="stylesheet">
</head>
<body>
<?php
if($logged_in){
echo $headerin;
echo '<center><div id="content">The user you click on was '.$rows['username'].'. More profile information will be coming soon.</div></center>';
echo $footer;
}
else{
echo $headerout;
echo '<center><div id="content">The user you click on was '.$rows['username'].'. More profile information will be coming soon.</div></center>';
echo $footer;
}
?>
</body>
</html>
And I keep getting this error message.
Parse error: syntax error, unexpected $end in /home/content/35/6821535/html/frsdb/member.php on line 33
Could anyone take a look at the code and tell me what is wrong? I can't find anything.