Jump to content

Displays nothing on the page... -.-'


Noskiw

Recommended Posts

<?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? :P

Link to comment
https://forums.phpfreaks.com/topic/203864-displays-nothing-on-the-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.