|
|
|
|
俵ÀÌ / 2000-05-16 / ¿ÀÈÄ 5:40:38 / 203.255.3.190
Á¶È¸¼ö : 122
|
[Áú¹®] ±Þ~~~ÇØ¿ä... |
> <%
> if IsEmpty(Session("outport_user_id")) or Len(Session("outport_user_id")) = 0 then
> Response.Redirect "xxx.asp"
> end if
> %>
> <%
> Set Db = Server.CreateObject("ADODB.Connection")
> Db.Open ("dsn=xxx;uid=xxx;pwd=xxx")
> SQL = "Select * from bokkuan where user_id ='"& Session("outport_user_id") &"' order by writeday desc"
> Set Rs = Server.CreateObject("ADODB.Recordset")
> Set Rs = db.Execute(SQL)
> %>
>
> < !-- À̺κп¡ ¹º°¡ µé¾î°¡¾ß ÇÒ°Í °°Àºµ¥..... Á¦°¡ »ðÀÔÇغ»°Ç ´Ù ¿¡·¯°¡ ³ª¼¿ä.... TT
> üũÇÏ·Á´Â°Ç ´ÙÀ½°ú °°½À´Ï´Ù...
>
> bok_check=°æ·ÎÀÔ´Ï´Ù.. ¾îµð·Î µé¾î¿Ô´ÂÁö È®ÀÎÇϴ°ÅÁö¿ä...
> session(*_id)ȸ¿øÀÌ µé¾î¿ÔÀ»¶§ 24½Ã°£¾È¿¡ 2¹ø°æ·Î¿¡¼ À̺¥Æ®¿¡ ÀÀ¸ðÇÏÁö ¾Ê¾ÒÀ¸¸é insert¸¦ ÁöÅ°°í º¹±ÇÀ» Ãâ·Â½ÃÄÑÁÖ·Á°í ÇÕ´Ï´Ù.
> ¹æ¹ý Á» ¾Ë·ÁÁÖ¼¼¿ä... Á¦¹ß~~~ -- >
>
>
>
>
>
>
>
>
> <%
> Set DbCon = Server.CreateObject("ADODB.Connection")
> DbCon.Open ("dsn=xxxx;uid=xxxx;pwd=xxxx")
> SQL1 = "" &_
> " insert into bokkuan (user_id,bok_check,writeday)" &_
> " values ('"&session("outport_user_id")&"',2,'"&now&"')"
> Set Result = DbCon.Execute(SQL1)
> %>
> < html >
>
> < head >
> < meta http-equiv="Content-Type" content="text/html; charset=ks_c_5601-1987" >
> < meta name="GENERATOR" content="Microsoft FrontPage 3.0" >
> < title > Applet test < /title >
> < /head >
> < body topmargin="0" leftmargin="0" >
>
>
> < p >
> < applet code="ScretchApplet" align="baseline" width="347" height="205" >
> < param name="starthide" value="0" >
> < param name="endhide" value="200" >
> < param name="coinimg" value="coin.gif" >
> < param name="date" value="2000-05-24" >
> < param name="count" value="00001" >
> < /applet >
> < /p >
>
>
> < /body >
> < /html >
>
>
>
-----------------------------------------------------------
±Û½ê¿ä... ¿À´Ã ³¯Â¥·Î ¹Ù·Î now¸¦ ½á¼ ÀμƮ¸¦ Çϼ̴ٸé
select ÇϱⰡ ½±Áö ¾ÊÀ»°Í °°Àºµ¥¿ä....
³¯Â¥¸¸ µû·Î Ä®·³¿¡ µé¾î ÀÖ´Ù°í °¡Á¤Çϸé....
Select * from bokkuan where user_id ='"& Session("outport_user_id") &"' and bok_check=2 and writeday='¿À´Ã³¯Âî'
ÀÌ·¸°Ô Çؼ ÀÚ·á°¡ ¾øÀ¸¸é insert ÇØ ÁÖ½Ã¸é µÉ°Í °°±ä Çѵ¥¿ä....
¸¸¾à¿¡ ÇÏ·ç°¡ ¾Æ´Ï°í 24°£À̶ó¸é... ¹®Á¦´Â Á» º¹ÀâÇØÁö°ÚÁö¿ä...
ÀÏ´Ü selectÇÑ ´ÙÀ½¿¡ ÀÏÀÏÀÌ datediff(?) °°Àº ÇÔ¼ö·Î ½Ã°£À» ºñ±³ÇØ¾ß µÉ°Í °°±âµµ Çϱ¸¿ä....
·¹ÇÁ·±½º¸¦ Á»º¸½Ã¸é µÉ°Í °°Àºµ¥¿ä....
º° µµ¿òÀÌ µÇÁö ¸øÇϴ±º¿ä... ±×·³... ²Ù¹÷~~
|
|
|
|