Hello guys i am trying to show user profile in my website and user this script but why this not working.
<?php include 'config.php'; ?>
<?php $username = $_GET['username'];
$sql = mysql_query ("SELECT * FROM users WHERE username='$username'"); while ($row = mysql_fetch_array($sql)) { ?>
<html>
<body>
<title>MY WEB PAGE</title>
<link rel="stylesheet" type="text/css" href="style.css">
<div class="content">
<div class="cornheader"><?php echo $row['$username']; ?>'s Profile</div>
ID - #<?php echo $row['id']; ?> <br/> Username - <?php echo $row['username']; ?><br/>
</div>
</body>
</html>