|
|
|
|
俵ÀÌ / 2001-05-07 / ¿ÀÈÄ 8:29:45 / 203.255.3.190
Á¶È¸¼ö : 138
|
[Áú¹®] ÀÌ»óÇϱº¿©.°è¼® ¿¡·¯ÀÓ´Ù. |
> > > > > ====>ÀÌ·± ¿¡·¯°¡ ³ª¿Ô´Âµ¥...
> > > > > ¿À·ù Çü½Ä:
> > > > > 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°¡ µÇ¾ß µÇ´Â°Å ¾Æ´Ñ°¡¿ä?
|
|
|
|