½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > Ä¿¹Â´ÏƼ > Áú¹®°ú´äº¯ »ó¼¼º¸±â
Ä¿¹Â´ÏƼ ±¸Àα¸Á÷
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
asp
CSS
html
mysql
jquery
image
Mobile
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
°Ô½ÃÆÇŸÀÌƲ Áú¹®°ú´äº¯ / »ó¼¼º¸±â
Æ®À§ÅÍ·Î º¸³»±â
Ãßõ¼ö 108 | Á¶È¸¼ö 3,644 | µî·ÏÀÏ 2003-12-08 18:42:22

´Ð³×ÀÓ

sunny97

À̸ÞÀÏ

orange123@orgio.net

Á¦¸ñ

[´äº¯] [´äº¯] [´äº¯] [´äº¯] Perl·Î °Ô½ÃÆÇ ¸¸µé±âÁß.. GEtÀ¸·Î ³Ñ¾î¿Â µ¥ÀÌÅÍ
³»¿ë

°¨»çÇÕ´Ï´Ù. -_-

 

±×·±µ¥ ¿Ö Á¦°¡ § ¼Ò½º°¡ Ʋ¸°Áö ¾Ë¾Ò¾î¿ä..

Àú´Â ¾Æ·¡Ã³·³.. list.cgiÆÄÀÏ¿¡¼­ ÅÛÇø´À¸·Î viewbody.htmlÀ» ¸¸µé°Åµç¿ä

±×·±µ¥. ?msg_id=1 °°Àº°ÍÀº. viewbody.html?msg_id=1 ·Î µÇ°Åµç¿ä..

ÀúÂÊ¿¡¼­ ³Ñ±ä°ÍÀ» list.cgi¿¡¼­ ¹Þ¾Æ¾µ¼ö ¾ø³ª¿ä?


sub view {


        my ( $title, $name, $email, $message, $uptime, $count) = getMessage($dbh, $msg_id);
        $count ++;

        my $sql = "update bbs set count=count+1 where msg_id='$msg_id'";
        print $email;

        my $sth = $dbh->prepare($sql) or die print "DBI::errstr\n";

        $sth->execute();
        $dbh->disconnect;


        my $tbl;
        $tbl .=qq!<tr><td>$FF<h3>$title</h3>$FA</td></tr><tr bgcolor="#ffffef"><td>$FF$message$FA</td></tr><tr><td border="right">!;
        $tbl .=qq!<table border="0"><tr><td>$FF USername $FA</td><td>$FF$name<a href="mailto:$email">$email</a>$FA</td></tr><tr><td>$FF Time $FA</td><td>$FF:$uptime&nbsp;&nbsp;&nbsp;</td></tr></table>!;

        $V{'viewbody'} = $tbl;
        $T->process("b.tmpl", \%V, "/home/hncho/work/perlboard/ex/view.html" )  || die $T->error(), "\n";

}

Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
HappyCGI 2003-12-09 10:21:22
´ä±Û

¹«½¼¸»¾¸À̽ÅÁö ÀÌÇØ°¡ ¾È°©´Ï´Ù. ¤Ð.¤Ð

ÀÌÀü°Ô½Ã±Û ÀÇ·Ú°ü·ÃÁú¹®ÀÔ´Ï´Ù. 2003-12-08 18:21:25
´ÙÀ½°Ô½Ã±Û MySQL À» ÀÌ¿ëÇÑ PHP ÇÁ·Î±×·¥¿¡¼­ 3°³±¹¾î¸¦ ÇÔ²² »ç¿ëÇÏ·Á¸é 2003-12-09 08:23:24