Jump to content

UPDATE Query displaying duplicate data


Lukeidiot

Recommended Posts

Heres the code im currently in progress with:

 

Cpanel.php: ( http://lockpick.lukeidiot.com/?go=cpanelpreview )

<p><strong><strong>
  <?
$_SESSION['username'] = $username;
echo 'Welcome <b>'. $_COOKIE['username'].'</b><br />'; ?>
  <?php
$iplog = $_SERVER['REMOTE_ADDR'];
$sql = mysql_query("SELECT * FROM users");
while($result = mysql_fetch_array($sql)) {
if (!empty($online['id'])){ 
# Check to see if they're logged in 

echo 'Welcome <b>'.stripslashes($online['username']).'</b><br />'; 
# An example of how to display the browsing members name 
} 
else { 
# Else, they are not logged in. 
echo 'You must be logged in to access this page.'; 
?>
  </strong>Profile</strong> | <strong><a href="?go=memberlist">Memberlist</a></strong> | <strong><a href="?go=logout">Logout</a></strong><br>
   <strong><br>
   Account Type: </strong>Admin/Staff/Moderator/Customer 
  <strong><br>
  Job Position:</strong> <?php echo 'Account type: <b>' .$result['type'] . '</b>'; }?><br>
  <strong>Job Status:</strong> Accepted <br>
  <strong>Payout</strong>: $<?php echo '<b>'.$result['payout'] . '</b>'; }?><br>
  <strong>Signup Date:</strong> 
  <?=$signup?>
  <br />
  <strong>IP Logged:  </strong><?php echo '$iplog';?><br>
  <strong>Resume:</strong> http://lockpick.lukeidiot.com/upload/example.doc</p>

 

And it displays this:

User Selected: Lukeidiot

Account type: AdminAccount type: CustomerAccount type: CustomerAccount type: CustomerAccount type: Customer

 

Any idea why this is happeing?

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.