<img src="{INSERT HABBO IMAGING LINK}
<?php
mysql_query('SELECT look FROM users WHERE username = '" . filter( $_GET['username'] ) . "'" ') or die( mysql_error()
?>
.png">
I assume you want this done in PHP, like a pleb?
Try doing something like this:
Code:<img src="{INSERT HABBO IMAGING LINK} <?php mysql_query('SELECT look FROM users WHERE username = '" . filter( $_GET['username'] ) . "'" ') or die( mysql_error() ?> .png">
make sure the habbo imaging link is like:You must be registered for see linkswithout the brackets.
using that PHP code would make it work with whatever username you desire in the "username =", you can also use that link if you like.Yes
?
$data = new mysqli('localhost', 'username', 'password', 'database');
if ($data->connect_error) { die("Connection failed: " . $data->connect_error); }
$username = $data->real_escape_string($_GET['username']);
$exe = $data->query("SELECT look FROM users WHERE username = '$username'");
if ($exe->num_rows > 0) {
while($row = $exe->fetch_assoc()) {
print "<img src=\"http://example.com/avatar.php?user={$username}\">";
}
} else {
echo 'Username not found';
}
$data->close();
@Joel[26-Nov-2015 03:09:00 Europe/Belgrade] PHP Parse error: syntax error, unexpected '"' in C:\inetpub\wwwroot\avatarimage.php on line 11
PHP:$data = new mysqli('localhost', 'username', 'password', 'database'); if ($data->connect_error) { die("Connection failed: " . $data->connect_error); } $username = $data->real_escape_string($_GET['username']); $exe = $data->query("SELECT look FROM users WHERE username = '$username'"); if ($exe->num_rows > 0) { while($row = $exe->fetch_assoc()) { print "<img src=\"http://example.com/avatar.php?user={$username}\">"; } } else { echo 'Username not found'; } $data->close();
You're welcome
Replace
withPHP:print "<img src=\"http://example.com/avatar.php?user={$username}\">";
PHP:print "<img src=\"http://habbo.nl/habbo-imaging/avatarimage?figure={$row['look']}\">";
Stop trying to get spoonfed.You mind remaking the script than?