Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Profile page not working.

$
0
0
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>

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>