Hvorfor virker det her ikke ?!
Hejza alle sammen,Jeg har noget kode som ser sådan ud:
<body bgcolor=\"#FF6600\">
<p style=\"text-indent: 0; line-height: 100%; word-spacing: 0; margin: 0\" align=\"center\"><embed width=\"250\" height=\"60\" src=\"i/banner.swf\">
<p style=\"text-indent: 0; line-height: 100%; word-spacing: 0; margin: 0\"> </p>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"208\">
<tr>
<td height=\"208\">
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"130\" height=\"137\">
<tr>
<td bgcolor=\"#EF3C23\" width=\"130\" height=\"67\" style=\"border: 1 solid #000000\">
<p style=\"text-indent: 0; line-height: 100%; word-spacing: 0; margin: 0\"><img border=\"0\" src=\"../ZILLA_130x104.gif\" style=\"border-bottom-style: solid; border-bottom-width: 1\" width=\"130\" height=\"104\"></p>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"16\">
<tr>
<td width=\"100%\" bgcolor=\"#FF9933\" onmouseover=\"co(this,\'in\');\" onmouseout=\"co(this,\'out\');\" onClick=\"location.href=\'in/default.asp\';\" height=\"16\" style=\"border-bottom-style: solid; border-bottom-width: 1\" bordercolor=\"#000000\" bordercolorlight=\"#000000\" bordercolordark=\"#000000\">
<p align=\"center\"><font color=\"#000000\" size=\"1\" face=\"Verdana\"><b>Log
ind</b></font></p>
</td>
</tr>
</table>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
<tr>
<td width=\"100%\" bgcolor=\"#FF9933\" onmouseover=\"co(this,\'in\');\" onmouseout=\"co(this,\'out\');\" onClick=\"location.href=\'chat/default.asp\';\" height=\"16\" style=\"border-bottom-style: solid; border-bottom-width: 1\" bordercolor=\"#000000\" bordercolorlight=\"#000000\" bordercolordark=\"#000000\">
<p align=\"center\"><font color=\"#000000\" size=\"1\" face=\"Verdana\"><b>Chat</b></font></p>
</td>
</tr>
</table>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
<tr>
<td width=\"100%\" bgcolor=\"#FF9933\" onmouseover=\"co(this,\'in\');\" onmouseout=\"co(this,\'out\');\" onClick=\"location.href=\'debats/default.asp\';\" height=\"16\" style=\"border-bottom-style: solid; border-bottom-width: 1\" bordercolor=\"#000000\" bordercolorlight=\"#000000\" bordercolordark=\"#000000\">
<p align=\"center\"><font color=\"#000000\" size=\"1\" face=\"Verdana\"><b>Debatter</b></font></p>
</td>
</tr>
</table>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
<tr>
<td width=\"100%\" bgcolor=\"#FF9933\" onmouseover=\"co(this,\'in\');\" onmouseout=\"co(this,\'out\');\" onClick=\"location.href=\'jokes/default.asp\';\" height=\"16\" style=\"border-bottom-style: solid; border-bottom-width: 1\" bordercolor=\"#000000\" bordercolorlight=\"#000000\" bordercolordark=\"#000000\">
<p align=\"center\"><font color=\"#000000\" size=\"1\" face=\"Verdana\"><b>Jokes</b></font></p>
</td>
</tr>
</table>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
<tr>
<td width=\"100%\" bgcolor=\"#FF9933\" onmouseover=\"co(this,\'in\');\" onmouseout=\"co(this,\'out\');\" onClick=\"location.href=\'sms/default.asp\';\" height=\"16\" style=\"border-bottom-style: solid; border-bottom-width: 1\" bordercolor=\"#000000\" bordercolorlight=\"#000000\" bordercolordark=\"#000000\">
<p align=\"center\"><font color=\"#000000\" size=\"1\" face=\"Verdana\"><b>SMS</b></font></p>
</td>
</tr>
</table>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
<tr>
<td width=\"100%\" bgcolor=\"#FF9933\" onmouseover=\"co(this,\'in\');\" onmouseout=\"co(this,\'out\');\" onClick=\"location.href=\'downloads/default.asp\';\" height=\"16\" style=\"border-bottom-style: solid; border-bottom-width: 1\" bordercolor=\"#000000\" bordercolorlight=\"#000000\" bordercolordark=\"#000000\">
<p align=\"center\"><font color=\"#000000\" size=\"1\" face=\"Verdana\"><b>Downloads</b></font></p>
</td>
</tr>
</table>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
<tr>
<td width=\"100%\" bgcolor=\"#FF9933\" onmouseover=\"co(this,\'in\');\" onmouseout=\"co(this,\'out\');\" onClick=\"location.href=\'domain/default.asp\';\" height=\"16\" style=\"border-bottom-style: solid; border-bottom-width: 1\" bordercolor=\"#000000\" bordercolorlight=\"#000000\" bordercolordark=\"#000000\">
<p align=\"center\"><font color=\"#000000\" size=\"1\" face=\"Verdana\"><b>Subdomæne</b></font></p>
</td>
</tr>
</table>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
<tr>
<td width=\"100%\" bgcolor=\"#FF9933\" onmouseover=\"co(this,\'in\');\" onmouseout=\"co(this,\'out\');\" onClick=\"location.href=\'email/default.asp\';\" height=\"16\" style=\"border-bottom-style: solid; border-bottom-width: 1\" bordercolor=\"#000000\" bordercolorlight=\"#000000\" bordercolordark=\"#000000\">
<p align=\"center\"><font color=\"#000000\" size=\"1\" face=\"Verdana\"><b>Gratis
Email</b></font></p>
</td>
</tr>
</table>
<p style=\"text-indent: 0; line-height: 100%; word-spacing: 0; margin: 0\"> </p>
<p style=\"text-indent: 0; line-height: 100%; word-spacing: 0; margin: 0\"> </p>
</table>
</td>
<td height=\"208\" bgcolor=\"#FF6600\" width=\"10\"> </td>
<td width=\"100%\" height=\"208\" style=\"border: 1 solid #000000\" bgcolor=\"#EF3C23\">
<%
set conn = Server.CreateObject(\"ADODB.Connection\")
conn.Open \"Driver={Microsoft Access Driver (*.mdb)}; DBQ=\" & Server.MapPath(\"../mutti/db/users.mdb\")
SQL = \"select * from users WHERE username=\'\" & request(\"username\") & \"\'\"
Set RS = Conn.Execute(SQL)
Do While Not RS.EOF
Response.Write \"\" & RS(\"username\") & \"\'s brugerprofil\"
RS.MoveNext
Loop
RS.Close
Conn.Close
%>
</td>
</tr>
</table>
</body>
Som i sikkert kan se, udskriver den username fra en tabel, og det virker også fint :)
Mit spørgsmål er så, hvordan får man den til at skrive username, uden for asp-koden ???
Jeg har prøvet med <% Response.Write \"\" & RS(\"username\") & \"\'s brugerprofil\" %> og
<%=RS(\"username\") & \"\'s brugerprofil\" %>
Men uden held...er der nogen der ved, hvordan man ellers kan gøre ?