|
|
|
|
²ÀÁö / 2001-05-20 / ¿ÀÈÄ 3:16:30 / 211.104.160.247
Á¶È¸¼ö : 124
|
[Áú¹®] Á¤¼ö´Ô.俵´Ô ´äº¯ºÎŹ... |
> Á¤¼ö´Ô ´äº¯Áß¿¡
> Ä«¿îÅÍ º¸±âÁß¿¡ ÀÌ°É »ðÀÔÇ϶ó°í Çϼ̴µ¥
> ¾ÈµÇ³×¿ä
>
> ===========================================
> HTML ÆäÀÌÁöÁß ÇØ´çÇÏ´Â À§Ä¡¿¡ ¾Æ·¡ Äڵ带 »ðÀÔÇϽʽÿä...
>
>
>
> [a href="count/index.asp" target="contents"] [/a]
> =========================================================================
> ÆäÀÌÁö ³¡¿¡ »ðÀÔ...
>
> À§¿¡ ¼Ò½º´Â index.asp¸¦ ½ÇÇàÇϴ¼ҽºÀݾƿä
> ±×°Å¸»±¸ 俵´Ô ¸Þ´º¼Ò½º ¹Ø¿¡ÀÖ´Â Á¢¼ÓÀÚ¼ö°¡
> º¸ÀÌÀÚ³ª¿ä ±×°Å¾îÄÉÇؾߵǿ©?
> ÀÚ¼¼È÷Á»...
>
>
-----------------------------------------------------------
¿¹Àü¿¡ Çѹø ¼Ò½º¸¦ ¿Ã·È´ø °Í °°Àºµ¥...
Ȥ Áö±Ý 俵´ÔÀÌ °ø°³ÇϽŠī¿îÅÍ ¼Ò½º¸¦ ¼öÁ¤ ¾øÀÌ ¾²°í °è½Ã´Ù¸é, ¾Æ·¡ÀÇ ¼Ò½º¸¦ ÇØ´ç ÆäÀÌÁö¿¡ »ðÀÔÇϼż ¾²¸é, ÃÑ Á¢¼ÓÀÚ ¼ö¿Í, ¿À´Ã ³¯Â¥ÀÇ Á¢¼ÓÀÚ ¼ö¸¦ ³ªÅ¸³¾¼ö ÀÖÀ»°Ì´Ï´Ù..
´Ü¼øÈ÷ ¼Ò½º¸¦ ¿Ã·ÁµÎÁö¸¸, ´Ô²²¼ Á¶±Ý¸¸ ³ë·ÂÇϼż, ȯ°æ¿¡ ÀûÇÕÇÑ Äڵ带 ¸¸µé¾î º¸½Ã±æ ¹Ù¶ø´Ï´Ù.
Äõ¸®³»¿ëÀÇ ÀÌÇØ´Â ±×¸® ¾î·ÆÁö ¾ÊÀ»°ÍÀ» º¸ÀÔ´Ï´Ù.
----------------------------------------------------------------------------
N_Year=Year(date)
N_Month=Month(date)
if N_Month<10 then
N_Month="0"&N_Month
end if
N_Day=Day(date)
if N_Day<10 then
N_Day="0"&N_Day
end if
Set DBConnection = Server.CreateObject("ADODB.Connection")
DBConnection.ConnectionTimeout = Session("DBConnection_ConnectionTimeout")
DBConnection.CommandTimeout = Session("DBConnection_CommandTimeout")
DBConnection.Open Session("DBConnection_ConnectionString"), Session("DBConnection_RuntimeUserName"), Session("DBConnection_RuntimePassword")
Set cmdTemp = Server.CreateObject("ADODB.Command")
Set DataCommand1 = Server.CreateObject("ADODB.Recordset")
cmdTemp.CommandText = "SELECT Count(C_Index_PIN) as V_Visit FROM T_DreamCount_M WHERE C_Year_N='"&N_Year&"' AND C_Month_N='"&N_Month&"' AND C_Day_N='"&N_Day&"'"
cmdTemp.CommandType = 1
Set cmdTemp.ActiveConnection = DBConnection
DataCommand1.Open cmdTemp, , 0, 1
V_Visit=DataCommand1("V_Visit")
DataCommand1.Close
DBConnection.Close
Set DataCommand1=Nothing
Set DBConnection=Nothing
Set DBConnection = Server.CreateObject("ADODB.Connection")
DBConnection.ConnectionTimeout = Session("DBConnection_ConnectionTimeout")
DBConnection.CommandTimeout = Session("DBConnection_CommandTimeout")
DBConnection.Open Session("DBConnection_ConnectionString"), Session("DBConnection_RuntimeUserName"), Session("DBConnection_RuntimePassword")
Set cmdTemp = Server.CreateObject("ADODB.Command")
Set DataCommand1 = Server.CreateObject("ADODB.Recordset")
cmdTemp.CommandText = "SELECT C_Year_N, C_Month_N, C_Day_N FROM T_DreamCount_M"
cmdTemp.CommandType = 1
Set cmdTemp.ActiveConnection = DBConnection
DataCommand1.Open cmdTemp, , 1, 1
V_Total=DataCommand1.RecordCount
DataCommand1.Close
DBConnection.Close
Set DataCommand1=Nothing
Set DBConnection=Nothing
----------------------------------------------------------------------------
V_Visit´Â ¿À´Ã Á¢¼ÓÀÚ ¼öÀÌ°í, V_TotalÀº ÃÑ Á¢¼ÓÀÚ ¼öÀÔ´Ï´Ù. Àû´çÇÑ °÷¿¡ Ãâ·ÂÇÏ½Ã¸é µÉ°Ì´Ï´Ù..
±×·³ À̸¸..
|
|
|
|