[Help]F*cking Profile View.php[Help]

Status
Not open for further replies.

Li1M0ST3Rz

I <3 Bianca
Sep 13, 2010
269
166
Ehh having weird outcome from the codes
Picture:
sf0mhOELmQb0.png

Code:
PHP:
<?php
define("_VALID_PHP", true);
  require_once("init.php");
 
  if (!$user->logged_in)
      redirect_to("index.php");
  $row = $user->getUserData();
  $userrow = $user->getUsers();
?>
              <?php
              include 'header.php';
              foreach ($userrow as $row):
              $pid = mysql_real_escape_string(preg_replace("@[^a-z0-9]@i","",$_GET['id']));
              include 'config.php';
              $sql = mysql_query("SELECT * FROM users WHERE id='". $pid ."'") or die(mysql_error());
                $fetch = mysql_fetch_assoc($sql) or die(mysql_error());
                    $username = mysql_real_escape_string(preg_replace("@[^a-z0-9]@i","",$fetch['username']));
                        echo('<img src="http://www.habbo.com/habbo-imaging/avatarimage?figure=' . $row['look'] .'&action=wav&direction=2&head_direction=3&gesture=srp&size=l" id="user"/>
                              Username: '. $row["username"] .' <br />
                              Mission: '. $row["mission"] .' <br />
                              Credits: '. $row["credits"] .' <br />
                              Pixels: '. $row["pixels"] .' <br />
                              Last Online: '. $row["lastlogin"] .'
                              ');
                              endforeach;
              ?>
 

Icesurvivor

New Member
Sep 13, 2012
3
0
Uh? That's because you didn't put the line break tags.


PHP:
echo "<img src=\"http://www.habbo.com/habbo-imaging/avatarimage?figure={$row['look']}&action=wav&direction=2&head_direction=3&gesture=srp&size=l\" id=\"user\"/><br />
Username: {$row["username"]} <br />
Mission: {$row["mission"]} <br />
Credits: {$row["credits"]} <br />
Pixels: {$row["pixels"]} <br />
Last Online: {$row["lastlogin"]}<br />";

This should work for you.
 
Status
Not open for further replies.

Users who are viewing this thread

☀️  Switch to Light Theme

Latest posts

Top