|
|
|
|
¹Ý¾ß / 2000-06-19 / ¿ÀÈÄ 9:39:21 / 210.207.238.52
Á¶È¸¼ö : 160
|
[Áú¹®] 俵´Ô~~ ·çÇÁµ¹¸®´Â°Å ¹× ±âŸµîµî ´Ù½Ã ºÎŹµå¸³´Ï´Ù.ÈæÈæ ¤Ð.¤Ð~ |
俵´Ô °¡¸£ÃÄÁֽŵ¥·Î Çߴµ¥, ¿¡·¯´Â ¾øÁö¸¸, ȸ鿡 ¾Æ¹«°Íµµ ¾È³ª¿À³×¿ä. ±×·¡¼ ´Ù½Ã °íÃƴµ¥, ¹Ø¿¡ ¿¡·¯°¡ ¶°¿ä. ±×¸®°í, Á¦°¡ ±¸ÇöÇÏ·Á´Â ºÎºÐÀ» ´Ù½Ã Àû¾ú½À´Ï´Ù. »ìÆìºÁÁÖ¼¼¿ä. ^_^
---- ¿¡·¯ ¸Þ½ÃÁö ----
Microsoft VBScript ÄÄÆÄÀÏ ¿À·ù error '800a03fc'
'Next'°¡ ÇÊ¿äÇÕ´Ï´Ù
/finaltest/betlist/win_ratio/test1.asp, line 50 >else ratio=rs("ratio) ^ >
---- ¿¡·¯¶óÀÎÀÇ ÄÚµå ----
< %@ Language=VBScript % >
< HTML >
< HEAD >
< META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0" >
< /HEAD >
<%
Set db = Server.CreateObject("ADODB.Connection")
db.Open("dsn=00;Uid=00;pwd=0000")
SQL = "SELECT ratio from ratio_ratio "
Set Rs = Server.CreateObject("ADODB.Recordset")
Rs.Open SQL,db
V_total=rs.RecordCount
for i=0 to v_total
%>
< BODY >
< center >
< form name="myform" method="post" action="test2.asp" >
< table >
< tr >
< td width="10%" height="5" align="middle" >< input type="radio"
name="ratio_index_num" value="7" checked >< /td >
< td width="40%" height="5" align="middle"
border="1" bgcolor="white" valign="center" >< p align="center" >< font
face="µ¸¿ò" size="2" color="blue" > 70%¹Ì¸¸ < /font >< /p >< /td >
< td ><%if rs.BOF then ratio=0 %> <%=ratio%> <%
else ratio=rs("ratio) %><%=ratio%><%end if %>
< td width="10%" height="5" align="middle" >< input
type="radio" name="ratio_index_num" value="1" >< /FONT >< /td >
< td width="40%" height="5" align="middle"
border="1" bgcolor="white" valign="center" >< p align="center" >< font
face="µ¸¿ò" size="2" color="blue" >70% ~ 75% < /font >< /p >< /td >
< td ><%if rs.BOF then ratio=0 %> <%=ratio%> <%
else ratio=rs("ratio)%><%=ratio%><%end if%>
< /tr >
< tr >
< td width="10%" height="10" align="middle" >< input
type="radio" name="ratio_index_num" value="4" >< /td >
< td width="40%" height="10" border="1"
bgcolor="white" valign="center" >< p align="center" >< font face="µ¸¿ò"
size="2" color="blue" >75% ~ 80%;< /font >< /p >< /td >
< td ><%if rs.BOF then ratio=0 %> <%=ratio%> <%else ratio=rs
("ratio)%><%=ratio%><%end if%>
< td width="10%" height="10" align="middle" >< input type="radio"
name="ratio_index_num" value="6" >< /td >
< td width="40%" height="10" border="1"
bgcolor="white" valign="center" >< p align="center" >< font face="µ¸¿ò"
size="2" color="blue" >80% ~ 85%< /font >< /p >< /td >
< td ><%if rs.BOF then ratio=0 %> <%=ratio%> <%else ratio=rs
("ratio)%><%=ratio%><%end if%>
< /tr >
< /table >
<%
rs.MoveNext
next
%>
< /form >
< /center >
< /BODY >
< /HTML >
<%
Rs.Close
db.Close
Set Rs = Nothing
Set db = Nothing
%>
---- Áú¹® ³»¿ë ----
À§ aspÀÇ ¸ñÀûÀº ¶óµð¿À¹öÆ° ¹Ù·Î ¿·¿¡´Â °¢°¢ÀÇ ratio¸¦ º¸¿©ÁÖ±â À§ÇÑ
¼Ò½º ÀÔ´Ï´Ù. ¹°·Ð ¹öưŬ¸¯½Ã ¸¶´Ù RATIO´Â °»½ÅµË´Ï´Ù. ±×·±µ¥ ÇØ´ç ºä(ratio_ratio)
ºäÅ×ÀÌºÒ À» ±×¸®·Á´Ï ¾î·Æ³×¿ä. Ä÷³Àº ¹Ø¿¡ ó·³ 2°³ ÀÖ¾î¿ä. »ç½Ç ¸î
°³´õ ÀÖÁö¸¸, Áß¿äÇÑ°Ç ¾Æ´Ï±¸¿ä
ratio_index_num , ratio
1 2
2 0.8
3 4
¿¹¸¦ µé¸é °¢ ÇØ´ç ratio_index_num¿¡ µû¶ó¼ ÇØ´çratio¸¦ »Ñ·ÁÁÖ±¸ À§ÇÑ
°Ì´Ï´Ù. ¸¸¾à óÀ½ test1_asp¿¡ ¿À¸é ,´ç¿¬ ºä´Â ¾ø±¸¿ä. ¸ðµç ratio´Â 0À»
»Ñ·Á¾ßÇÏ°í, ¸Ç óÀ½ ¶óµð¿À ¹öÆ°À» Ŭ¸¯½Ã 1¹øÀ» Ŭ¸¯Çß´Ù°í °¡Á¤Çϸé
(radio_index_num=1) ±×´ÙÀ½ ´Ù½Ã test1.asp¿¡ ¿À¸é,
ratio_index_num , ratio
1 1
Çʵå´Â Çϳª ¹Û¿¡ ¾ø½À´Ï´Ù.
±×¸®°í, °è¼Ó test1.asp¸¦ ½ÇÇà½ÃÄѼ, ¶óµð¿À¹öÆ°À» Ŭ¸¯ÇÒ¶§¸¶´Ù, Çʵå
°¡ Áõ°¡ÇÏÁö¿ä. Ŭ¸¯ÇÏÁö ¾Ê´Â ratio_index_numÀº ´ç¿¬È÷ ¾ÈÂïÈ÷°í¿ä.
ÀÌ»óÀÔ´Ï´Ù.
À§ ó·³ ±¸ÇöÀ» ÇÒ·Á´Ï ¾î·Æ³×¿ä.
ºÎµð~ µµ¿ÍÁÖ¼¼¿ä.
|
|
|
|