Jump to content

[SOLVED] Byte showing on page


NSW42

Recommended Posts

Heya, I have a slight issue thats very annoying, i have a profile page for my users and all has worked well for ages, but 2night I added in a option for users to add in smilie gifs, I did this thru java and a php include, now the gifs show up fine, but now at the bottom of the page there are 2 arrows showing as follows  >>  im sure there some sort of byte but im not the best coder out as im still on my learners permit, any help on how to stop it from showing would be appreciated.. many thanks

Link to comment
Share on other sites

heya and heres the mess, but works fine except for the >> at the end or page

 

 

<body>
<body id="body" onload="replaceText();">

<p align="left">
<img border="0" src="images/home.jpg" width="780" height="110">

<table border="0" cellpadding="0" cellspacing="0" width="78%" height="1">
  <tr>
    <td width="100%" height="1" bgcolor="#3E9DDA"><spacer type=block height=1></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<body bgcolor="#F0F8FF"topmargin="0">
</table>

  <tr>
    <td width="100%" height="1" bgcolor="#3E9DDA"><spacer type=block height=1></td>
  </tr>
</table>



<script type="text/javascript">
    document.oncontextmenu = new Function("return false");
</script>





<?
include("config.php");
include("change1.php");

function hex2str($hex)
  {
  for($i=0;$i<strlen($hex);$i+=2)
  {
  $str.=chr(hexdec(substr($hex,$i,2)));
  }
  return $str;
}
if(isset($_GET['epuid'])){
$epuid2 = $_GET['epuid'];
$epuid = hex2str($epuid2);
}
if(isset($_GET['hn'])){
$epuid2 = $_GET['hn'];
$epuid = hex2str($epuid2);
}
$sql = mysql_query("SELECT * FROM users WHERE nickname = '$epuid'");
while($row = mysql_fetch_array($sql) or die(mysql_error())){
?>


</script>

</STYLE>
</head>


<table border=0 cellpadding=0 cellspacing=0 width=779><tr><td width=140 bgcolor=#FFFFFF valign=top>

<TABLE cellSpacing=0 cellPadding=0 width=140 border=0>
<TBODY>
<TR>

<TR>
<TD vAlign=center align=middle width=140 bgColor=#FFFFFF height=700>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>



<TR>



<TR>
<TD vAlign=top align=left colSpan=3></TD></TR>
<TR>
</INPUT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></FORM>




<STYLE>

</STYLE>



<TABLE height=85 cellSpacing=0 cellPadding=0 width=128 border=0>
<TBODY>
<TR>



<TR>

<TABLE id=Table1 cellSpacing=0 cellPadding=0 width=140 border=0>
<TBODY>
<TR>
<TD width=5 rowSpan=3></TR>
<TR>

<TR>
<TD vAlign=top>



<P> </P></DIV>
<P></P></TD></TR></TBODY></TABLE>  
<DIV class=Section1>
<P class=MsoNormal><o:p> </o:p></P></DIV></BODY></HTML></td><td width=464 bgcolor=#FFFFFF valign=top><table border="0" cellpadding="0" cellspacing="0" width=450><tr><td width=450 align=right><nobr> <nobr><nobr></A></nobr></td></tr></table>




<table border=0 cellpadding=0 cellspacing=0 width=450><tr><td bgcolor=#F0F8FF valign=center>   <font class=viewlabel></font></td></table>
<img src="images/c.gif" height=5 width=1><br>
<table border=0 cellpadding=0 cellspacing=0 width=450><tr>		<td width=200 valign=top>			<table bgcolor=#F0F8FF border="0" cellpadding="1" cellspacing="0" width=200><tr><td class=viewsectionbar width=100%><nobr><font color="#0076CD" size="2">  My Picture</nobr> </td>			</tr></table>

<?
print("
<img src=$row[pro_pic] width=200 height=200><br>

");

?>


		<table border="0" cellpadding="0" cellspacing="0" width=200><tr><td>					
			</td></tr></table>
		<table border=0 cellpadding=0 cellspacing=0 width=200>			
					<tr>

		</tr><tr><td colspan=3></td></tr>
					<tr><td colspan=3></td></tr>			</table>
		<table border=0 cellpadding=0 cellspacing=0 width=200>			</table>
		<img src="images/c.gif" height=10 width=1><br></td>
	<td width=6><img src="images/c.gif" width=6 height=1></td>
	<td width=264 valign=top>
		<table bgcolor=#F0F8FF border="0" cellpadding="1" cellspacing="0" width=100%><tr><td class=viewsectionbar width=100%><nobr><font color="#0076CD" size="2">  My Basic Info</nobr> </td>			</tr></table>
		<br><table border="0" cellpadding="3" cellspacing="0" width=100%><tr><td class=viewStats valign=top><FONT size=2><B>Nickname</B><br><FONT size=2><?php echo $row[nickname]; ?>				</td><td class=viewStats valign=top><nobr><FONT size=2><B>Age</B></nobr><br><?php echo $row[age]; ?>				</td></tr><tr><td class=viewStats valign=top><FONT size=2><B>Gender</B><br>
				<?php echo $row[gender]; ?>				</td><td class=viewStats valign=top><FONT size=2><nobr><B>Marital Status</B></nobr><br><?php echo $row[marital]; ?>				</td></tr><tr><td colspan=2 class=viewStats><FONT size=2><B>Location</B><br><?php echo $row[local]; ?><br></td></tr><tr><td colspan=2 class=viewStats>					<FONT size=2><B>Occupation</B><br>
				<?php echo $row[occu]; ?>			</td></tr><tr><td colspan=2><br>There is more about me below</A><br></td></tr></table></td></tr><tr><td>
	</td></tr></table>
<A name="MORE">
<table bgcolor=#F0F8FF border="0" cellpadding="1" cellspacing="0" width=100%><tr><td class=viewsectionbar width=100%><nobr><font color="#0076CD" size="2">  A Little About Me</nobr> </td>	</tr></table><br><FONT size=2><?php echo $row[profile]; ?>  </font><br><br>	<table bgcolor=#F0F8FF border="0" cellpadding="1" cellspacing="0" width=100%><tr><td class=viewsectionbar width=100%><nobr><font color="#0076CD" size="2">  Favourite Things</nobr> </td>	</tr></table><br><FONT size=2><?php echo $row[fav]; ?>    </font><br><br>	<table bgcolor=#F0F8FF border="0" cellpadding="1" cellspacing="0" width=100%><tr><td class=viewsectionbar width=100%><nobr><font color="#0076CD" size="2">  Hobbies and Interests</nobr> </td>	</tr></table><br><FONT size=2><?php echo $row[hob]; ?>    </font><br><br>	<table bgcolor=#F0F8FF border="0" cellpadding="1" cellspacing="0" width=100%><tr><td class=viewsectionbar width=100%><nobr><font color="#0076CD" size="2">  Favourite Quote</nobr> </td>	</tr></table><br><FONT size=2><?
print(" $row[siggy]	</font><br><br><br><br><br>
");

?>
<table bgcolor=#F0F8FF border="0" cellpadding="1" cellspacing="0" width=100%><tr><td class=viewsectionbar width=100%><nobr><font color="#0076CD" size="2">  My Homepage</nobr> </td>	</tr></table><br><font color="#0076CD" size="2"> Take a look at my personal Web site</font></A>
<FONT size=1></FONT><FONT size=1><a href='<?php echo $row[homepage]; ?>' target=new window>
CLICK HERE</FONT></A><FONT class=viewDesc size=1>.</FONT><BR></FORM>


<br><br><br>


</td><td width=160 valign=top align=left bgcolor=#FFFFFF>
</a>
</script></td></tr></form></table><TABLE class=FRHdBG border=0 cellspacing=0 cellpadding=0 width=779>
<TR>
	<TD valign=bottom align=left>

<TABLE class=FRHdBG id=Table1 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>

<DIV class=dMSNME_1>   

<TABLE class=FRHdBG id=Table2 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width="100%" bgColor=#0076CD height=1><SPACER TYPE="block" HEIGHT="1" /></TD></TR>
<TR>
<TD width="100%" height=15>  <FONT face="Tahoma, Arial,Helvetica,Sans Serif" color=#0076CD size=1>2007  Chat. All rights reserved.</FONT>  


	</TD>
</TR>
</TABLE></TD></TR></TABLE>

<?
}

?>

 

EDITED BY akitchin:  code tags aren't just polite, they're the LAW!

Link to comment
Share on other sites

heya and heres the mess, but works fine except for the >> at the end or page

 

 

<html>
<head>
<title> Chat Profiles</title>
<meta name="revisit-after" CONTENT="2 days">
<meta http-equiv="Content-Language" content="english">
<meta name="description" CONTENT="mgn is a chatroom free in which you can create your chat or participate in those already existing,  News and Enjoy.">
<meta name="keywords" content="chat, chatrooms, chat rooms, australia, aussie, nickname, web chat, chat on the internet, online chat, friendly chat, easy chat, chat resources, chat management, chat tips, chat tools, commercial chat, business chat, starting a chat, teens, romance, internet, online, media, entertainment">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<body>
<body id="body" onload="replaceText();">

<p align="left">
<img border="0" src="images/home.jpg" width="780" height="110">

<table border="0" cellpadding="0" cellspacing="0" width="78%" height="1">
  <tr>
    <td width="100%" height="1" bgcolor="#3E9DDA"><spacer type=block height=1></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<body bgcolor="#F0F8FF"topmargin="0">
</table>

  <tr>
    <td width="100%" height="1" bgcolor="#3E9DDA"><spacer type=block height=1></td>
  </tr>
</table>


<style>
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;

}


}

</style>
<script type="text/javascript">
    document.oncontextmenu = new Function("return false");
</script>





<?
include("config.php");
include("change1.php");

function hex2str($hex)
  {
  for($i=0;$i<strlen($hex);$i+=2)
  {
  $str.=chr(hexdec(substr($hex,$i,2)));
  }
  return $str;
}
if(isset($_GET['epuid'])){
$epuid2 = $_GET['epuid'];
$epuid = hex2str($epuid2);
}
if(isset($_GET['hn'])){
$epuid2 = $_GET['hn'];
$epuid = hex2str($epuid2);
}
$sql = mysql_query("SELECT * FROM users WHERE nickname = '$epuid'");
while($row = mysql_fetch_array($sql) or die(mysql_error())){
?>


</script>

</STYLE>
</head>


<table border=0 cellpadding=0 cellspacing=0 width=779><tr><td width=140 bgcolor=#FFFFFF valign=top>

<TABLE cellSpacing=0 cellPadding=0 width=140 border=0>
<TBODY>
<TR>

<TR>
<TD vAlign=center align=middle width=140 bgColor=#FFFFFF height=700>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>



<TR>



<TR>
<TD vAlign=top align=left colSpan=3></TD></TR>
<TR>
</INPUT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></FORM>




<STYLE>

</STYLE>



<TABLE height=85 cellSpacing=0 cellPadding=0 width=128 border=0>
<TBODY>
<TR>



<TR>

<TABLE id=Table1 cellSpacing=0 cellPadding=0 width=140 border=0>
<TBODY>
<TR>
<TD width=5 rowSpan=3></TR>
<TR>

<TR>
<TD vAlign=top>



<P> </P></DIV>
<P></P></TD></TR></TBODY></TABLE>  
<DIV class=Section1>
<P class=MsoNormal><o:p> </o:p></P></DIV></BODY></HTML></td><td width=464 bgcolor=#FFFFFF valign=top><table border="0" cellpadding="0" cellspacing="0" width=450><tr><td width=450 align=right><nobr> <nobr><nobr></A></nobr></td></tr></table>




<table border=0 cellpadding=0 cellspacing=0 width=450><tr><td bgcolor=#F0F8FF valign=center>   <font class=viewlabel></font></td></table>
<img src="images/c.gif" height=5 width=1><br>
<table border=0 cellpadding=0 cellspacing=0 width=450><tr>		<td width=200 valign=top>			<table bgcolor=#F0F8FF border="0" cellpadding="1" cellspacing="0" width=200><tr><td class=viewsectionbar width=100%><nobr><font color="#0076CD" size="2">  My Picture</nobr> </td>			</tr></table>

<?
print("
<img src=$row[pro_pic] width=200 height=200><br>

");

?>


		<table border="0" cellpadding="0" cellspacing="0" width=200><tr><td>					
			</td></tr></table>
		<table border=0 cellpadding=0 cellspacing=0 width=200>			
					<tr>

		</tr><tr><td colspan=3></td></tr>
					<tr><td colspan=3></td></tr>			</table>
		<table border=0 cellpadding=0 cellspacing=0 width=200>			</table>
		<img src="images/c.gif" height=10 width=1><br></td>
	<td width=6><img src="images/c.gif" width=6 height=1></td>
	<td width=264 valign=top>
		<table bgcolor=#F0F8FF border="0" cellpadding="1" cellspacing="0" width=100%><tr><td class=viewsectionbar width=100%><nobr><font color="#0076CD" size="2">  My Basic Info</nobr> </td>			</tr></table>
		<br><table border="0" cellpadding="3" cellspacing="0" width=100%><tr><td class=viewStats valign=top><FONT size=2><B>Nickname</B><br><FONT size=2><?php echo $row[nickname]; ?>				</td><td class=viewStats valign=top><nobr><FONT size=2><B>Age</B></nobr><br><?php echo $row[age]; ?>				</td></tr><tr><td class=viewStats valign=top><FONT size=2><B>Gender</B><br>
				<?php echo $row[gender]; ?>				</td><td class=viewStats valign=top><FONT size=2><nobr><B>Marital Status</B></nobr><br><?php echo $row[marital]; ?>				</td></tr><tr><td colspan=2 class=viewStats><FONT size=2><B>Location</B><br><?php echo $row[local]; ?><br></td></tr><tr><td colspan=2 class=viewStats>					<FONT size=2><B>Occupation</B><br>
				<?php echo $row[occu]; ?>			</td></tr><tr><td colspan=2><br>There is more about me below</A><br></td></tr></table></td></tr><tr><td>
	</td></tr></table>
<A name="MORE">
<table bgcolor=#F0F8FF border="0" cellpadding="1" cellspacing="0" width=100%><tr><td class=viewsectionbar width=100%><nobr><font color="#0076CD" size="2">  A Little About Me</nobr> </td>	</tr></table><br><FONT size=2><?php echo $row[profile]; ?>  </font><br><br>	<table bgcolor=#F0F8FF border="0" cellpadding="1" cellspacing="0" width=100%><tr><td class=viewsectionbar width=100%><nobr><font color="#0076CD" size="2">  Favourite Things</nobr> </td>	</tr></table><br><FONT size=2><?php echo $row[fav]; ?>    </font><br><br>	<table bgcolor=#F0F8FF border="0" cellpadding="1" cellspacing="0" width=100%><tr><td class=viewsectionbar width=100%><nobr><font color="#0076CD" size="2">  Hobbies and Interests</nobr> </td>	</tr></table><br><FONT size=2><?php echo $row[hob]; ?>    </font><br><br>	<table bgcolor=#F0F8FF border="0" cellpadding="1" cellspacing="0" width=100%><tr><td class=viewsectionbar width=100%><nobr><font color="#0076CD" size="2">  Favourite Quote</nobr> </td>	</tr></table><br><FONT size=2><?
print(" $row[siggy]	</font><br><br><br><br><br>
");

?>
<table bgcolor=#F0F8FF border="0" cellpadding="1" cellspacing="0" width=100%><tr><td class=viewsectionbar width=100%><nobr><font color="#0076CD" size="2">  My Homepage</nobr> </td>	</tr></table><br><font color="#0076CD" size="2"> Take a look at my personal Web site</font></A>
<FONT size=1></FONT><FONT size=1><a href='<?php echo $row[homepage]; ?>' target=new window>
CLICK HERE</FONT></A><FONT class=viewDesc size=1>.</FONT><BR></FORM>


arrows here somewhere >>


</td><td width=160 valign=top align=left bgcolor=#FFFFFF>
</a>
</script></td></tr></form></table><TABLE class=FRHdBG border=0 cellspacing=0 cellpadding=0 width=779>
<TR>
	<TD valign=bottom align=left>

<TABLE class=FRHdBG id=Table1 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>

<DIV class=dMSNME_1>  

<TABLE class=FRHdBG id=Table2 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width="100%" bgColor=#0076CD height=1><SPACER TYPE="block" HEIGHT="1" /></TD></TR>
<TR>
<TD width="100%" height=15>  <FONT face="Tahoma, Arial,Helvetica,Sans Serif" color=#0076CD size=1>2007  Chat. All rights reserved.</FONT>  


	</TD>
</TR>
</TABLE></TD></TR></TABLE>

<?
}

?>

 

 

ive marked pretty much w:: here they are, thanks

 

EDITTED BY WILDTEEN88: Please use code tags (


) when posting code within post.

 

This is the second time a moderator had to edit your post.

Link to comment
Share on other sites

$sql = mysql_query("SELECT * FROM users WHERE nickname = '$epuid'");
while($row = mysql_fetch_array($sql) or die(mysql_error())){
?>


</script>

</STYLE>
</head>

--the end of that 'while' loop is all the way to the end of the page.  Which means that a whole bunch of extra and invalid '/script' tags and '/style' tags and '/head' tags will be generated!

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.