$code = "pds"; include "../includes/header.inc"; include "../includes/dbconn.inc"; ########## ´äº¯À» ´Þ°íÀÚ ÇÏ´Â ±ÛÀÇ ÀԷ°ªÀ» »Ì¾Æ³½´Ù. ########## $query = "SELECT fid,name,subject,comment,thread FROM $code WHERE uid = $number"; $result = mysql_query($query,$dbconn); $row = mysql_fetch_row($result); $my_fid = $row[0]; $my_name = $row[1]; $my_subject = $row[2]; $my_comment = $row[3]; $my_thread = $row[4]; ########## addslashes() ÇÔ¼ö·Î escapeµÈ Á¦¸ñ°ú º»¹®ÀÇ ¹®ÀÚ¿À» ¿ø»óº¹±Í½ÃŲ´Ù. ########## $my_subject = stripslashes($my_subject); $my_comment = stripslashes($my_comment); ########## ¿ø±ÛÀÚü°¡ ´Ù¸¥ ±ÛÀÇ ÀÀ´ä±ÛÀÏ °æ¿ì ¹®ÀÚ¿ÀÇ Áߺ¹À» ÇÇÇϱâ À§ÇØ "[RE]"¸¦ ¾ø¾Ø´Ù. ########## $my_subject = eregi_replace("^Re : ", "",$my_subject); ########## ¿ø±Û°ú ´äº¯±ÛÀ» ±¸ºÐÇϱâ À§ÇØ ¿ø±ÛÀÇ °¢ ÁÙ¾Õ¿¡ ÄÝ·Ð(:)À» Ãß°¡ÇÏ¿© Ãâ·ÂÇÑ´Ù. ########## $my_comment = ":" . $my_comment; $my_comment = eregi_replace("\n", "\n:", $my_comment); ########## ´äº¯À» À§ÇÑ Àοë±Û. ########### $reply_comment = "\n\n\n\n".$my_name . "´ÔÀÇ ±ÛÀÔ´Ï´Ù.\n\n" . $my_comment; ?>
![]() |