|
|
|
|
俵ÀÌ / 2001-05-07 / ¿ÀÈÄ 11:24:22 / 203.255.3.190
Á¶È¸¼ö : 141
|
[Áú¹®] Á¤¸»·ç ÀÌ»óÇÔ´Ù.
|
> > > > > > > ====>ÀÌ·± ¿¡·¯°¡ ³ª¿Ô´Âµ¥...
> > > > > > > ¿À·ù Çü½Ä:
> > > > > > > Microsoft VBScript ·±Å¸ÀÓ ¿À·ù (0x800A01A8)
> > > > > > > °³Ã¼°¡ ÇÊ¿äÇÕ´Ï´Ù.: 'DbRec1'
> > > > > > > /Webma/bbs_sizz/main.asp, line 3
> > > > > > >
> > > > > > >
> > > > -----------------------------------------------------------
> > > >
> > > > DbRec1.Open "SELECT num,subject,ref,wdate FROM nayapds WHERE step=0 ORDER BY date DESC", DbCon
> > > > ¶óÀο¡¼ ¿¡·¯³»¿ëÀ» º¸¸é °´Ã¼°¡ ¾ø´Ù°í ³ª¿À´Âµ¥, ±×¸»Àº DbRec1À̶ó´Â °³Ã¼¸¦ »ý¼ºÇÏÁö ¾Ê¾Ò´Ù´Â Àǹ̷ΠÁüÀÛÀÌ µÇ³×¿ä..
> > > >
> > > > Set DbRec1=Server.CreateObject("ADODB.RecordSet")
> > > > DbRec1.Open "SELECT num,subject,ref,wdate FROM nayapds WHERE step=0 ORDER BY date DESC", DbCon
> > > >
> > > > À§¿Í °°ÀÌ ·¹ÄÚµå¼Â °´Ã¼¸¦ »ý¼º½ÃÅ°°í Çغ¸½ÃÁÒ..(±Ùµ¥ ´ç¿¬È÷ ÀÌ·¸°Ô ÇϼÌÀ»°Í °°Àºµ¥..)
> > > >
> > > > ¾Æ¹«ÂÉ·Ï ¿¡·¯¸Þ½ÃÁö ³»¿ëÀ¸·Î´Â ÀÌÁ¤µµÀÇ ÃßÃø¹Û¿¡ ÇÒ ¼ö°¡ ¾ø³×¿ä...
> > > >
> > > > ¼º°øÇÏ½Ã±æ ¹Ù¶ó±¸¿ä..
> > > >
> > > > ÁÁÀº ÈÞÀÏ º¸³»½Ã±æ..
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > -----------------------------------------------------------
> > > »õ·Î¿î »ý¼ºµðºñ·ç Ãâ·ÂÀ» ½Ãµµ Çß½À´Ï´Ù.±×·±µ¥µÎ °á°ú´Â ¶È°°ÀÌ ¿¡·¯ÀÓ´Ù.À̹ø¿¡´Â ³¯Â¥ °ü·Ã ¿¡·¯Àε¥,Å×À̺í¸íÀº board1·ç µÇ¾îÀÖÀ½´Ù.
> > > <!--#include file=dbopen.asp-->
> > > <%
> > > 'DbRec1.Open "SELECT num,subject,ref,wdate FROM board1 WHERE step=0 ORDER BY date DESC", DbCon
> > > ==>ÀÌ°÷ÀÇ ÁÖ¼®À» ¾ø¾Ö¸é óÀ½°ú °°Àº ¿¡·¯ ¹ß»ý
> > > Set DbRec1=Server.CreateObject("ADODB.RecordSet")
> > > DbRec1.Open "SELECT num,subject,ref,wdate FROM board1 WHERE step=0 ORDER BY date DESC", DbCon
> > >
> > >
> > > postcount=DbRec1.Recordcount
> > > if postcount > 6 then
> > > postcount=6
> > > end if
> > >
> > > for j=1 to postcount
> > > number=DbRec1("num")
> > > subject=DbRec1("subject")
> > > if len(subject) > 20 then
> > > subject=left(subject,18)&"..."
> > > end if
> > > ref=DbRec1("ref")
> > >
> > > Response.Write " "&subject&" "
> > > if datediff("d",DbRec1("wdate"),now)=<5 then '
> > > response.write ""
> > > end if
> > > response.write ""
> > >
> > > DbRec1.MoveNext
> > > next
> > > DbRec1.Close
> > > %>
> > > ¿¡·¯ ¸Þ¼¼Áö´Â ¿À·ù Çü½Ä:
> > > Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
> > > [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name 'date'.
> > > /Web/board/test.asp, line 5
> > > ³¯Â¥°ª¿¡¼ ¿¡·¯°¡ ¹ß»ýµÈ°Í °°Àºµ¥ ¸»ÀÌÁ®.Ä®·³ ¿¡·¯ ±Ùµ¥ ÀϹÝÀûÀ¸·Î »ý¼ºµÈ°ÍÀº Àß µ¹¾Æ°¡°Åµç¿ä.
> > > ¾Ö±¸ Èûµé´Ù...
> > >
> > >
> > -----------------------------------------------------------
> >
> > DbRec1.Open "SELECT num,subject,ref,wdate FROM board1 WHERE step=0 ORDER BY date DESC", DbCon
> >
> > ¿©±â¼ ORDER BY wdate°¡ µÇ¾ß µÇ´Â°Å ¾Æ´Ñ°¡¿ä?
> >
> >
> -----------------------------------------------------------
>
> ¿¡·¯´Â »ç¶óÁ³¾î¿ä.
> ±Ùµ¥ ¹®Á¦´Â °ªÀ» ºÒ·¯¿ÀÁö ¸øÇÑ´Ù´Â °ÍÀÌÁÒ.
> ¿¹¸¦ µé¾î ¾Æ·¡°ÍÀº Á¦¸ñ ºÎºÐÀ» ºÒ·¯¿À´Â °ÍÀε¥,¸»ÀÓ´Ù.
> <%
> if tstep > 0 then
> response.write "<img src=images/blank.gif width="&tstep*5&" height=10>"
> response.write "<img src=images/ref.gif width=17 height=12 border=0> "
> end if
>
> 'ÀÌ°÷Àº Á¦¸ñÀÇ ¹®ÀÚ ±æÀÌ°¡ ±æ¾îÁú °æ¿ì ...󸮸¦ À§ÇÑ °÷ÀÌ´Ù.
> if len(subject) > 25 then
> response.write "<img src=images/polb5.gif border=0 width=20 height=16>"
> response.write "<a href=content.asp?tb="&tb&"&code="&code&"&num="&num&"&ref="&ref&"&page="&page&"&startpage="&startpage&"&key="&key&"&naya_s="&naya_s&"&naya_heeya="&naya_heeya&"&naya_korean="&naya_korean&" onMouseOver=""window.status=('"&writer&"´ÔÀÇ °Ô½Ã¹° Àбâ "&subject&" Physical NO "&num&" , Virtual NO "&n&" '); return true;""><span style='font-size:9pt;color:"&tbtext&"'>"
> response.write left(subject,26)&"...</span></a>"
> else
> response.write "<img src=images/polb3.gif border=0 width=20 height=16>"
> response.write "<a href=content.asp?tb="&tb&"&code="&code&"&num="&num&"&ref="&ref&"&page="&page&"&startpage="&startpage&"&key="&key&"&naya_s="&naya_s&"&naya_heeya="&naya_heeya&"&naya_korean="&naya_korean&" onMouseOver=""window.status=('"&writer&"´ÔÀÇ °Ô½Ã¹° Àбâ "&subject&" Physical NO "&num&" , Virtual NO "&n&" '); return true;""><span style='font-size:9pt;color:"&tbtext&"'>"
> response.write subject&"</span></a>"
> end if
> %>
> ÀÌ·¸°Ô ¸®½ºÆ® ºÎºÐ¿¡¼ ºÒ·¯¿Ô´Âµ¥,ȸéÀÌ ÇÏ¾á ¹ÙÅÁ¸¸ ÀÖ±¸,À̹ÌÁö´Â Ãâ·ÂµË´Ï´Ù.´Ù¸¥°ÍÀº ¾Æ¹«°ÍµÎ Ãâ·ÂµÇÁö ¾Ê´Â°Å ÀÖÁÒ.
> ´Ù¸¥ ºÎºÐµÎ ±×·¸±¸¿©...
> <%=subject%>ÀÌ·±½ÄÀ¸·Î ºÒ·¯¿ÍµÎ ¶È°°±¸¿©...
>
> board.asp?tb=board1&code=013002
> Å×À̺í¸íÀº board1À¸·Î µÇ¾î ÀÖ±¸¿ä.
> code¸íÀº 013002ÀÓ´Ù.
>
>
>
-----------------------------------------------------------
¿¡·¯¸¦ Àâ´Â´Ù´Â°Ç ¸ðµç »çÇ×À» °í·ÁÇÏÁö ¾ÊÀº »óÅ¿¡¼´Â ¸Å¿ì ¾î·Æ½À´Ï´Ù.
´ÔÀÇ ÇöÀç Å×ÀÌºí¿¡ ¾î¶² ³»¿ëÀÌ µé¾î ÀÖ´ÂÁö SELECT ÇßÀ»¶§ Á¤¸» Á¶°Ç¿¡ ¸Â´Â ·¹ÄÚµå¼ÂÀÌ
¼±ÅõǾú´ÂÁö¿¡ ´ëÇÏ Â÷±ÙÂ÷±Ù ´Ù½Ã È®ÀÎÇØ º¸½Ã±â ¹Ù¶ø´Ï´Ù.
¿¹¸¦ µé¸é ´ÔÀÇ ¼Ò½ºÁß¿¡ Á¤È®È÷ postcountÀÌ ¾ó¸¶ÀÎÁö...
SELECT ÇßÀ»¶§ ·¹Äڵ尡 ¼±Åà µÇ¾îÁ³´ÂÁö
Á¦´ë·Î ¼±ÅõǾú´Ù¸é Ȥ½Ã º¯¼ö¸í¿¡ ¿ÀŸ°¡ ³ªÁö´Â ¾Ê¾Ò´ÂÁö ¾Ê¾Ò´ÂÁö...
Ȥ½Ã³ª html ű׸¦ À߸ø ½áÁö´Â ¾Ê¾Ò´ÂÁö...
Â÷±ÙÂ÷±Ù Ç®¸° ²öÀ» Ç®¾î°¡µí óÀ½ºÎÅÍ ÇϳªÇϳª ´Ù½Ã º¸½Ã±â ¹Ù¶ø´Ï´Ù.
ÁÁÀº °á°ú ÀÖÀ¸½Ã±æ.... |
|
|
|