|
|
|
|
俵ÀÌ / 2000-06-30 / ¿ÀÈÄ 5:41:04 / 203.255.3.190
Á¶È¸¼ö : 110
|
[Áú¹®] 俵´Ô ¹Ø¿¡²« ÇØ°áÇß¾î¿ä. ¶Ç´Ù¸¥ ³¯Â¥ºñ±³Á» ºÁÁÖ¼¼¿ä. |
> ¹Ø¿¡ today1Àº db¿¡¼ ²ø°í ¿À´Â°ÍÀÔ´Ï´Ù.
> game_date¶ó´Â°ÍÀÌ smalldatetime ÀÌ°í, getdate() µÇ¾î Àִµ¥,¹Ø¿¡ º¸´Ï±î 00-06-28 ¿ÀÈÄ 3:00:00 ÀÌ·±¾¿À¸·Î ÀúÀåµË´Ï´Ù.±×·±µ¥, today2ÇÏ°í ºñ±³¸¦ ÇÒ·Á´Ï Çü½ÄÀÌ ¾È¸Â´ÂÁö ¾ÈµÇ³×¿ä.
>
>
> <%
> set db=server.CreateObject("adodb.connection")
>
> db.Open("dsn=xx;Uid=xx;pwd=xx")
>
> SQL = "SELECT game_date from team_game "
>
>
>
>
> Set Rs = Server.CreateObject("ADODB.Recordset")
>
> Rs.Open SQL,db
>
>
> game_date=rs.Fields("game_date")
>
> %>
>
>
> < SCRIPT LANGUAGE="JavaScript" >
>
> today2 = new Date();
> myyear = today2.getFullYear();
> mymonth = today2.getMonth()+1;
> myday = today2.getDate();
> mytime= today2.getHours();
> myminutes=today2.getMinutes();
>
>
> var today1=(<%=game_date%>);
>
> if (today1 < today2){
>
> document.write(today2)
>
> location.href="win_list.asp";
>
> }
> else if (today1 > today2){
> document.write(today1)
> }
>
>
>
>
>
> < /script >
>
-----------------------------------------------------------
ÇöÀçÀÇ ¼Ò½º·Î´Â ´ç¿¬È÷ ºñ±³°¡ ºÒ°¡´ÉÇÕ´Ï´Ù...
¼·Î Çü½ÄÀÌ Æ²¸®´Ñ±î¿ä...
³¯Â¥ ºñ±³¸¦ ²À ÀÚ¹Ù½ºÅ©¸³Æ®·Î ÇØ¾ß µÇ´Â°Ç°¡¿ä?
getdate()ÇÔ¼ö´Â SQL ÇÔ¼öÀ̱⠶§¹®¿¡....
±×³É asp·Î ÇÏ½Ã¸é ¾È µÇ³ª¿ä?
now() ÇÔ¼ö¸¦ ¾²½Ã°í cdate()·Î ÄÁ¹úÆ® ÇϽŠ´ÙÀ½
ºñ±³ÇÏ½Ã¸é µÉ°Í °°Àºµ¥... Èì...
|
|
|
|