CAFE

ASP Q/A

[[질문]]php소스를 asp소스를 바꿀수 있을까염?

작성자킹아써|작성시간03.05.26|조회수111 목록 댓글 1
아래 소스를 asp소스로 바꾸고 싶어요..
도와주세요!!
어떻게 바꿔야 할지 막막하네요...
도와주세요!! 네?.....ㅡㅜ
<HTML>
<BODY background=bg.gif>
<p>
<center>
<img src=2.gif><img src=title.gif><img src=2.gif>
<p>

<?
//bgproperties="fixed"

$board="naboard";

$db = mysql_connect("localhost","galgu","--");
mysql_select_db("galDB",$db);

$day2=(int)date("d");
$value = mysql_query("delete from $board where dayofmonth(wdate)! = $day2",$db);
$result = mysql_query("select * from $board order by wdate desc limit 12",$db);

$a=0;
echo "<TABLE border=0 WIDTH=600>";
while($row=mysql_fetch_array($result))
{
if($a == 0 || $a == 4 || $a == 8 || $a == 12)
{
print "<tr>"; }
print "<td width=20%>";

//$content=htmlspecialchars($row[content]);
//$content=str_replace("\n","<br>","$content");
//$content=str_replace(" ","&nbsp;",$content);
$content = $row[content];
$content =str_replace("\n","<br>","$content");


$name = htmlspecialchars($row[name]);

echo ("
<table border=0>
<tr>
<td colspan=2><FONT face=돋움 size=1 color=silver>$name</FONT></TD></TR>
<TR>
<TD></TD>
<TD><FONT face=돋움 size=2 color=ffdc74>$content</font></td></tr>
<tr>
<td colspan=2><FONT face=돋움 SIZE=1 COLOR=navy>$row[u_ip]</font></td></tr>
</table>
");

print "</td>";

if($a==3 || $a==7 || $a ==11 || $a ==15)
{print "</tr>"; }
$a++;
}
echo "</TABLE>";

mysql_close($db);
?>
<p> <p>
<A HREF = "write.php"
onMouseOver = "document.images['imBut'].src='go1.gif'"
onMouseOut = "document.images['imBut'].src='go.gif'">
<IMG NAME="imBut" SRC="go.gif" BORDER=0 alt="낙서 안하고 뭐해 ??"></A>

</CENTER>
</BODY>
</HTML>
다음검색
현재 게시글 추가 기능 열기

댓글

댓글 리스트
  • 작성자야간독수리 | 작성시간 03.06.12 <% == <? $ 변수 ^^ 뭐 나머지는 ^^ 비슷하네요 ^^ 걍 문법만 조금바꾸면 될듯한데요 ^^
댓글 전체보기
맨위로

카페 검색

카페 검색어 입력폼