|
|
|
|
¹Ý¾ß / 2000-08-13 / ¿ÀÀü 6:15:26 / 210.124.240.132
Á¶È¸¼ö : 131
|
[Áú¹®] 俵´Ô À̰͵µ ºÁÁÖ¼¼¿ä. ´õ ¹ÌÄ¡´Â°Å¿¡¿ä. |
¹Ø¿¡ ¼Ò½º´Â ÅõÇ¥Çϱâ(üũ¹Ú½º·Î starnumÀ̶ó´Â º¯¼ö¸¦ ¹Þ¾Æ¼ ÅõÇ¥¼ö Áõ°¡¸¦ ÇØÁÖ´Â ºÎºÐÀÔ´Ï´Ù. starnumÀÌ ÇÑ °³¿¡¼ µÎ°³±îÁö ³Ñ¾î ¿À´Â ºÎºÐÀ̶ó¼ splitÇÔ¼ö¸¦ ÀÌ¿ëÇß±¸¿ä. ±×¸®°í, ³Ñ¾î¿Â ¹è¿ °¹¼ö array_num¸¦ ¼¼¾î¼ Å×ÀÌºí¿¡ µ¥ÀÌÅ͸¦ Á¶°Çº°·Î »ðÀÔÇϴ°ſ¡¿ä.
starnumÀÌ Çϳªµç µÎ°³µç Á¦´ë·Î µ¥ÀÌÅÍ°¡ ³Ñ¾î¿À°í
µÎ°³ ³Ñ¾î¿Ã¶§ snum(0),snum(1) Á¦°ªÀÌ ³Ñ¾î¿À´Âµ¥
¹®Á¦´Â ¾Õ¿¡¼ µÎ°³ÀÇ ´Ù¸¥ üũ¸¦ Çߴµ¥, ÇÑ °÷¿¡¸¸ ¾÷µ¥ÀÌÆ®°¡ µÇ¿ä
¾÷µ¥ÀÌÆ®°¡ snum(0)À̶ó´Â °÷¿¡¸¸ µÈ´Ù´Â °Ì´Ï´Ù. µû·Î µû·Î ÇÑ°³¾¿¸¸ ÁÖ¼®Ã³¸®ÇÏ¸é¼ ¾÷µ¥ÀÌÆ® ½ÃÅ°¸é, Á¶°Ç¿¡ ¸ÂÃß¾î¼ ¾÷µ¥ÀÌÆ®°¡ µÇ´Àµ¥, ¿Ö ¾ÈµÇ´Â°ÅÁö¿ä?
<%
Set db=Server.CreateObject("ADODB.Connection")
db.Open("xx")
starnum=Request.Form("starnum")
snum=split(starnum,",")
name=Request.Form("name")
array_num=ubound(split(Request.Form("starnum"),",")) +1
if array_num =1 then
sql = "UPDATE starsurvey SET counter = counter + 1 Where starnum='" & snum(0) & "'"
db.Execute sql
' IP=Request.ServerVariables("REMOTE_ADDR")
'
' SQL2 = "INSERT INTO surveymember(ip) values ('"& ip &"')"
'db.Execute sql2
end if
if array_num =2 then
'IP=Request.ServerVariables("REMOTE_ADDR")
' SQL3 = "INSERT INTO surveymember(ip) values ('"& ip &"')"
'db.Execute sql3
' ¿©±â°¡ ¹ÌÄ¡´Â ºÎºÐ
sql = "UPDATE starsurvey SET counter = counter + 1 Where starnum='" & snum(0) & "'"
db.Execute sql
'Sql = "UPDATE starsurvey SET counter = counter + 1 Where starnum='" & snum(1) & "'"
'db.Execute sql
'end if |
|
|
|