PDA

View Full Version : Help, I'm sick of this error!



Topps
18-11-2007, 01:05 PM
Hey everyone, I have my user system and I have made a page where it has the exact same scheme as Habbo so it displays the users information as the old Habbo slate (no one steal the idea cos it's just gay if you do.) but it just shows a blank page, I don't know what's wrong, could someone try and figure it out?


<?
oB_start();
include("config.php");
switch($_GET[go])
{
default:
if (!$_GET[user]){
$getuser = mysql_query("SELECT * FROM users WHERE username = '$_GET[user]'");
$usernum = mysql_num_rows($getuser);
if ($usernum == 0){
echo ("User Not Found");
} else {
$profile = mysql_fetch_array($getuser);
if($profile[hotels] == "UK"){
?>
<img src="images/big_slate.png" id="Image1" alt="" align="top" border="0" width="164" height="55" style="position:absolute;left:8px;top:80px;width:164px;he ight:55px;z-index:0">
<div id="bv_" style="position:absolute;left:15px;top:117px;width:150px; height:13px;z-index:1" align="center">
<font style="font-size:10px" color="#FFFFFF" face="Verdana"><b><? echo $profile[user]; ?></b></font></div>
<img src="http://www.habbo.co.uk/habbo-imaging/avatarimage?user=<? echo $profile[habboname]; ?>&action=&direction=4&head_direction=4&gesture=sml&size=l" id="Image2" alt="" align="top" border="0" style="position:absolute;left:95px;top:0px;z-index:2">
<img src="management.gif" id="Image3" alt="" align="top" border="0" width="56" height="56" style="position:absolute;left:142px;top:27px;width:56px;h eight:56px;z-index:3">
<div id="bv_" style="position:absolute;left:14px;top:135px;width:152px; height:13px;z-index:4" align="right">
<font style="font-size:10px" color="#000000" face="Verdana"><? echo $profile[mission]; ?></font></div>
<?
}
if($profile[hotels] == "USA"){
?>
<img src="images/big_slate.png" id="Image1" alt="" align="top" border="0" width="164" height="55" style="position:absolute;left:8px;top:80px;width:164px;he ight:55px;z-index:0">
<div id="bv_" style="position:absolute;left:15px;top:117px;width:150px; height:13px;z-index:1" align="center">
<font style="font-size:10px" color="#FFFFFF" face="Verdana"><b><? echo $profile[user]; ?></b></font></div>
<img src="http://www.habbo.com/habbo-imaging/avatarimage?user=<? echo $profile[habboname]; ?>&action=&direction=4&head_direction=4&gesture=sml&size=l" id="Image2" alt="" align="top" border="0" style="position:absolute;left:95px;top:0px;z-index:2">
<img src="<? echo $profile[displaybadge]; ?>" id="Image3" alt="" align="top" border="0" width="56" height="56" style="position:absolute;left:142px;top:27px;width:56px;h eight:56px;z-index:3">
<div id="bv_" style="position:absolute;left:14px;top:135px;width:152px; height:13px;z-index:4" align="right">
<font style="font-size:10px" color="#000000" face="Verdana"><? echo $profile[mission]; ?></font></div>
<?
}
if($profile[hotels] == "CA"){
?>
<img src="images/big_slate.png" id="Image1" alt="" align="top" border="0" width="164" height="55" style="position:absolute;left:8px;top:80px;width:164px;he ight:55px;z-index:0">
<div id="bv_" style="position:absolute;left:15px;top:117px;width:150px; height:13px;z-index:1" align="center">
<font style="font-size:10px" color="#FFFFFF" face="Verdana"><b><? echo $profile[user]; ?></b></font></div>
<img src="http://www.habbo.ca/habbo-imaging/avatarimage?user=<? echo $profile[habboname]; ?>&action=&direction=4&head_direction=4&gesture=sml&size=l" id="Image2" alt="" align="top" border="0" style="position:absolute;left:95px;top:0px;z-index:2">
<img src="management.gif" id="Image3" alt="" align="top" border="0" width="56" height="56" style="position:absolute;left:142px;top:27px;width:56px;h eight:56px;z-index:3">
<div id="bv_" style="position:absolute;left:14px;top:135px;width:152px; height:13px;z-index:4" align="right">
<font style="font-size:10px" color="#000000" face="Verdana"><? echo $profile[mission]; ?></font></div>
<?
}
if($profile[hotels] == "AU"){
?>
<img src="images/big_slate.png" id="Image1" alt="" align="top" border="0" width="164" height="55" style="position:absolute;left:8px;top:80px;width:164px;he ight:55px;z-index:0">
<div id="bv_" style="position:absolute;left:15px;top:117px;width:150px; height:13px;z-index:1" align="center">
<font style="font-size:10px" color="#FFFFFF" face="Verdana"><b><? echo $profile[user]; ?></b></font></div>
<img src="http://www.habbo.com.au/habbo-imaging/avatarimage?user=<? echo $profile[habboname]; ?>&action=&direction=4&head_direction=4&gesture=sml&size=l" id="Image2" alt="" align="top" border="0" style="position:absolute;left:95px;top:0px;z-index:2">
<img src="management.gif" id="Image3" alt="" align="top" border="0" width="56" height="56" style="position:absolute;left:142px;top:27px;width:56px;h eight:56px;z-index:3">
<div id="bv_" style="position:absolute;left:14px;top:135px;width:152px; height:13px;z-index:4" align="right">
<font style="font-size:10px" color="#000000" face="Verdana"><? echo $profile[mission]; ?></font></div>
<?
}
if($profile[hotels] == "SG"){
?>
<img src="images/big_slate.png" id="Image1" alt="" align="top" border="0" width="164" height="55" style="position:absolute;left:8px;top:80px;width:164px;he ight:55px;z-index:0">
<div id="bv_" style="position:absolute;left:15px;top:117px;width:150px; height:13px;z-index:1" align="center">
<font style="font-size:10px" color="#FFFFFF" face="Verdana"><b><? echo $profile[user]; ?></b></font></div>
<img src="http://www.habbo.com.sg/habbo-imaging/avatarimage?user=<? echo $profile[habboname]; ?>&action=&direction=4&head_direction=4&gesture=sml&size=l" id="Image2" alt="" align="top" border="0" style="position:absolute;left:95px;top:0px;z-index:2">
<img src="management.gif" id="Image3" alt="" align="top" border="0" width="56" height="56" style="position:absolute;left:142px;top:27px;width:56px;h eight:56px;z-index:3">
<div id="bv_" style="position:absolute;left:14px;top:135px;width:152px; height:13px;z-index:4" align="right">
<font style="font-size:10px" color="#000000" face="Verdana"><? echo $profile[mission]; ?></font></div>
<?
}
}
}
}
?>

It's a very simple code and yet it's being so perdantic.

Thanks for any help given!

Jamesy
18-11-2007, 01:07 PM
Pedantic ;)

Blob
18-11-2007, 01:27 PM
Replace <? with <?php. My localhost doesnt like using <? either

Topps
18-11-2007, 01:42 PM
Replace <? with <?php. My localhost doesnt like using <? either

Yer, it's weird, it didn't work, but thanks. :)

Invent
18-11-2007, 02:10 PM
lol, your script is so exploitable ;D!

Dentafrice,
18-11-2007, 04:08 PM
lol, your script is so exploitable ;D!
Not trying to be an ***, but why just post saying its exploitable and not help? :P

Anyways, your server *might* be like one I am working on and have error reporting disabled.

Place this at the top of the page before oB_start();



ini_set("display_errors", "1");
error_reporting(E_ALL);


That may help, if not post back :)

Want to hide these adverts? Register an account for free!