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? Link to comment https://forums.phpfreaks.com/topic/203864-displays-nothing-on-the-page/ 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. Link to comment https://forums.phpfreaks.com/topic/203864-displays-nothing-on-the-page/#findComment-1067715 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.