¾È±Ô °øºÎ¹æ

ACTIVE SERVER PAGE > Recordset - Method

µî·ÏÀÏ : 2017-07-04 17:11 Á¶È¸¼ö : 53,566

5.14.1 GetString

ÆäÀÌÁö¿¡ Å×À̺íÀ» Ãâ·ÂÇÒ ¶§´Â ´ëºÎºÐ ±× ³»¿ëÀ» ä¿ì´Â µ¥ ·¹ÄÚµå¼ÂÀ» »ç¿ëÇÏ°Ô µË´Ï´Ù. ¸ÂÁÒ?
À̶§ recordset ¿ÀºêÁ§Æ®ÀÇ GetString ¸Þ¼Òµå¸¦ »ç¿ëÇÏ¿© »ö´Ù¸¥ ¹æ¹ýÀ¸·Î Å×À̺íÀ» ¸¸µé¼ö ÀÖ´ä´Ï´Ù.
GetString ¸Þ¼Òµå´Â ·¹ÄÚµå¼Â¿¡ ÀÖ´Â µ¥ÀÌÅÍÀÇ Á¶°¢µéÀ» »©³»¾î html ÅÂ±×¿Í Àý¹¦ÇÏ°Ô °áÇÕÇÏ¿©
Response.write ±¸¹®À» ÀÌ¿ëÇÏ¿© ¸¸µé¾îÁø ¹®ÀÚ¿­À» Ãâ·ÂÇϱ⸸ ÇÏ¸é µÇ´Â°Ì´Ï´Ù.
Á¦°¡ ÀÌ·±Àú·± ¸»À» ÁÖÀý°Å¸®±â Àü¿¡,, ¼Ò½º¸¦ º¸¸é¼­ °£´ÜÈ÷ ºÐ¼®ÇØ º¸±â·Î ÇÏ°Ú½À´Ï´Ù.. ..
ÁÁÁÒ??? ^^;
 
<%
        Set Conn=Server.CreateObject("ADODB.Connection")
        Conn.Open("DSN=cak0280;UID=sa;PWD=;database=cak0280")
        
        SQL = "SELECT name,email,title FROM board ORDER BY ref desc, re_step asc"
        Set rs = Server.CreateObject("ADODB.Recordset")
        
        rs.Open SQL,conn,1
        
        Response.write "<table border=1><tr><td>"
        response.write rs.GetString(,,"</td><td>","</td></tr><tr><td>","*")
        response.write "</td></tr></table>"
        %>  



´ëÃæ ¾Ë °Íµµ °°À¸¸é¼­ ½ÇÁ¦ ÇÁ·Î±×·¥À» µ¹·Á º¸Áö ¾ÊÀº ÀÌ»ó °í°³¸¦ °¼¿ì¶×ÇÏ°Ô ¸¸µå´Â ºÎºÐµµ ÀÖ½À´Ï´Ù...
¸ÕÀú °£´ÜÇÑ ¼³¸íÀ» µå¸®µµ·Ï ÇÏ°Ú½À´Ï´Ù.

rs.GetString(,,"</td><td>","</td></tr><tr><td>","*")

ÀÌ ¹®ÀåÀ» º¸ÀÚ... ¸ÕÀú 5°³ÀÇ ÀÎÀÚ°ªÀ» »ç¿ëÇÒ¼ö°¡ ÀÖ´Ù...
ù¹ø°¿Í µÎ ¹ø°´Â »ý·«µÇ¾ú´Ù... ù ¹ø°ÀÎÀÚ´Â adClipString¶ó´Â ¹®ÀÚ¸¦ ³ÖÀ»¼ö Àִµ¥,,,, Ãâ·ÂÇüŸ¦ ¹®ÀÚ¿­·Î Ãâ·Â
½ÃÄÑÁشٰí ÇÑ´Ù... ±Ùµ¥,,, ¿Ö ³»°¡ ½ÇÇàÇÏ¹È ¹ö±×°¡ ³ª¿À´ÂÁö ¸ð¸£°Ú´Ù..
±×¸®±¸ µÎ ¹ø° ÀÎÀÚ°ªÀº -1,1,2,3,,,, µîµîÀÇ ¼ýÀÚ¸¦ ³ÖÀ» ¼ö ÀÖ´Ù... -1Àº ¸ðµç ·¹Äڵ带 Ãâ·ÂÇÑ´Ù´Â ÀǹÌÀÌ°í,
1Àº 1°³ÀÇ ·¹Äڵ带 2´Â µÎ °³ÀÇ.... µîµîÀ¸·Î ÁÖ¸é µË´Ï´Ù.
»ý·«À» ÇϰԵǸé,,, ±âº» -1ÀÌ ¼ÂÆÃµÇ¾î ¸ðµç ·¹Äڵ带 Ãâ·ÂÇÏ°Ô µË´Ï´Ù.
¼¼ ¹ø° ÇǶó¹ÌÅÍ´Â ÀÐÇôÁø ÇÊµå µ¥ÀÌÅÍ¿Í °áÇÕÇÒ Çà ±¸ºÐ ű×ÀÔ´Ï´Ù. ÇϳªÀÇ Çʵ尡 ³¡³µÀ¸¹Ç·Î </td> ű׸¦ ÀÌ¿ëÇؼ­
³¡³»°í ´Ù½Ã <td>ű׸¦ ÀÌ¿ëÇؼ­ ´ÙÀ½ ÇàÀ» °áÇÕÇØ ÁÖ¾î¾ß°ÚÁö¿ä?
³× ¹ø° ÇǶó¹ÌÅÍ´Â ¿­À» ±¸ºÐÇÏ´Â µ¥ »ç¿ëµÇ´Â ű׷Π·¹ÄÚµåÀÇ ¸¶Áö¸· Çʵ带 ÀоîµéÀÎ ÈÄ °áÇÕÇÏ°Ô µÇ´Â ºÎºÐÀÔ´Ï´Ù.
±×¸®±¸, ¸¶Áö¸· ÇǶó¹ÌÅÍ´Â Çʵ忡 µ¥ÀÌÅÍ°¡ ¾øÀ»¶§ Ãâ·ÂÇÏ´Â ¹®ÀÚ¿­ÀÔ´Ï´Ù...... ÀÌÇØ °¡½ÃÁÒ???

°£´ÜÇÑ µðºñ ³»¿ëÃâ·Â¿¡´Â »ó´çÈ÷ ¸·°­ÇÑ ±â´ÉÀ» °¡Áö°í ÀÖ´Â ¹æ¸é¿¡ getstring¿¡¼­´Â ¿øÇÏ´Â ·¹Äڵ峪 Çʵ带 ¼±ÅÃÇÒ ¼ö
¾øÀ¸¹Ç·Î ÀÌ·± °úÁ¤ÀÌ ÀÖ´Ù¸é ¹Ì¸® ÇØ ÁÖ¾î¾ß ÇÕ´Ï´Ù.

±×·³,,, À̱ÛÀ» Àд ºÐµé¿¡°Ô ¾ó¸¶³ª µµ¿òÀÌ µÆ´ÂÁö ¸ð¸£°Ú±º¿ä... ¾Æ¸¶ ¸¹Àº µµ¿òÀº µÇÁö ¸øÇß´õ¶óµµ,,, asp ±â´ÉÀº ¾ÆÁ÷µµ
¾Ë¾Æ¾ß µÉ °ÍÀÌ ³Ê¹«³ª ¸¹´Ù´Â °Í Çϳª´Â ¾Æ¸¶ ´À³¢°Ô µÆÀ»Áöµµ ¸ð¸£°Ú±º¿ä...  
 
¡Ø Ȥ½Ã µµ¿òÀÌ µÇ¼Ì´Ù¸é ´ñ±Û¿¡ ÇѸ¶µð ³²°ÜÁÖ¼¼¿ä!
ÀÛ¼ºÀÚ   ºñ¹Ð¹øÈ£
ÀÚµ¿±Û ¹æÁö     (ÀÚµ¿±Û ¹æÁö ±â´ÉÀÔ´Ï´Ù.)
³»¿ë   ´ñ±Û´Þ±â 
À̸ÞÀÏ ¹®ÀÇ : cak0280@nate.com  
Copyright 2000 By ENTERSOFT.KR All Rights Reserved.