Thats my question, here is the EXACT code from the page.I made in bold red the images tags. somehow the code is being switched.
<%
strPageCategory = "home"
strExtraImageUrl = "http://www.team-offroad.com"
strExtraHomeURL = "http://www.team-offroad.com"
%>
<!--#INCLUDE FILE="../forum/config.asp"-->
<%
strQueryUserID = Request.QueryString("u")
strQueryUserPage = Request.QueryString("p")
If trim(strQueryUserID)="" or isnull(strQueryUserID) or not isnumeric(strQueryUserID) Then
strQueryUserID=""
End If
If trim(strQueryUserPage)="" or isnull(strQueryUserPage) or not isnumeric(strQueryUserPage) Then
strQueryUserPage=""
End If
set my_Conn = Server.CreateObject("ADODB.Connection")
my_Conn.Open strConnString
If strQueryUserID="" Then
' # LETS GET THE USERNAME THEY ARE LOOKING AT
strBadLink = Request.QueryString
strBadLink = Replace(strBadLink, "404;", "")
strUserName = right(strBadLink, (len(strBadLink)-32))
' # LETS GET THAT USERS ID #
strSql = "SELECT MEMBER_ID FROM " & strMemberTablePrefix & "MEMBERS WHERE M_NAME = '" & strUserName & "'"
set rs = Server.CreateObject("ADODB.Recordset")
rs.open strSql, my_Conn
if rs.eof or rs.bof then
Response.Write "Username not found"
Response.End
else
strMemberID = rs("MEMBER_ID")
end if
Response.Redirect("pages.asp?u=" & strMemberID)
Else
' # LETS MAKE SURE ITS A VALID USERID
strSql = "SELECT MEMBER_ID FROM " & strMemberTablePrefix & "MEMBERS WHERE MEMBER_ID = " & strQueryUserID
set rs = Server.CreateObject("ADODB.Recordset")
rs.open strSql, my_Conn
if rs.eof or rs.bof then
Response.Write "not a valid userid"
Response.End
else
strMemberID = rs("MEMBER_ID")
end if
End If
' # LETS FIND OUT WHAT PAGE THEY WANT TO DISPLAY
If strQueryUserPage="" Then
' # LETS DISPLAY THERE MAIN PAGE
strSql = "SELECT WEBSITE_ID"
strSql = strSql & ", WEBSITE_MEMBERID"
strSql = strSql & ", WEBSITE_PAGETITLE"
strSql = strSql & ", WEBSITE_BODY"
strSql = strSql & ", WEBSITE_BGCOLOR"
strSql = strSql & ", WEBSITE_MENUCOLOR"
strSql = strSql & ", WEBSITE_BGIMAGE"
strSql = strSql & ", WEBSITE_BASECOLOR"
strSql = strSql & ", WEBSITE_BASECOLORLINK"
strSql = strSql & ", WEBSITE_BASECOLORALINK"
strSql = strSql & ", WEBSITE_BASECOLORVLINK"
strSql = strSql & ", WEBSITE_MAINPAGE"
strSql = strSql & " FROM " & strTablePrefix & "WEBSITE"
strSql = strSql & " WHERE WEBSITE_MEMBERID = " & strMemberID
'strSql = strSql & " AND WEBSITE_MAINPAGE = 1"
set rs = Server.CreateObject("ADODB.Recordset")
rs.open strSql, my_Conn
if rs.eof or rs.bof then
Response.Write "no home page found"
else
strWebPageID = rs("WEBSITE_ID")
strWebPageMemberID = rs("WEBSITE_MEMBERID")
strWebPagePageTitle = rs("WEBSITE_PAGETITLE")
strWebPageBody = rs("WEBSITE_BODY")
strWebPageMenuColor = rs("WEBSITE_MENUCOLOR")
strWebPageBGColor = rs("WEBSITE_BGCOLOR")
strWebPageBGImage = rs("WEBSITE_BGIMAGE")
strWebPageBaseColor = rs("WEBSITE_BASECOLOR")
strWebPageBaseColorLink = rs("WEBSITE_BASECOLORLINK")
strWebPageBaseColorALink = rs("WEBSITE_BASECOLORALINK")
strWebPageBaseColorVLink = rs("WEBSITE_BASECOLORVLINK")
strWebPageMainPage = rs("WEBSITE_MAINPAGE")
end if
End If
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title><%=strWebPagePageTitle%></title>
</head>
<body leftMargin="0" rightmargin="0" topMargin="0" marginwidth="0" marginheight="0" background="<%=strWebPageBGImage%>" bgcolor="<%=strWebPageBGColor%>" text="<%=strWebPageBaseColor%>" link="<%=strWebPageBaseColorLink%>" vlink="<%=strWebPageBaseColorVLink%>" alink="<%=strWebPageBaseColorALink%>">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%" colspan="2" bgcolor="#000000" valign="top" align="center"><a href="<%=strHomeURL%>"><img src="<%=strImageUrl%>banner.gif" border="0" height="60" width="468"></a></td>
</tr>
<tr>
<td width="150" bgcolor="#000000" rowspan="4" valign="top" align="left"> </td>
<td width="99%"><a href="<%=strHomeURL%>"><img src="<%=strImageUrl%>banner.gif" border="0" height="60" width="468"></td>
</tr>
<tr>
<td width="99%">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="95%">
<tr>
<td width="100%" valign="top" align="left"><%=strWebPageBody%></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td width="99%"><img src="http://www.team-offroad.com/images/banner.gif" border="0" height="60" width="46"></td>
</tr>
<tr>
<td width="99%" valign="top" align="center">TEAM-OFFROAD.COM</td>
</tr>
</table>
</center>
</div>
</body>
</html>
<%
Response.End
%>