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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.