Noskiw Posted June 4, 2010 Share Posted June 4, 2010 <?php if(!$_SESSION){ echo "You need to be logged in to access this page. Please click <b><a href='index.php?p=login'>here</a></b> to login!"; }else{ $sql = "SELECT * FROM users WHERE id='".$id."'"; $res = mysql_query($sql) or die(mysql_error()); while($row = mysql_fetch_assoc($res)){ ?> <h2>Profile Information</h2> <table id="member"> <tr><td>Member ID: </td><td><?php echo $row['id']; ?></td></tr> <tr><td>First Name: </td><td><?php echo $row['first Name'];?></td></tr> <tr><td>Last Name: </td><td><?php echo $row['last Name']; ?></td></tr> <tr><td>Username: </td><td><?php echo $row['username']; ?></td></tr> </table> <?php } } ?> This seems to just display all my CSS elements and nothing else that is included in that page. Any thoughts? Quote Link to comment Share on other sites More sharing options...
F1Fan Posted June 4, 2010 Share Posted June 4, 2010 Sounds like you aren't getting any results from your query. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.