|
|
|
À̹®Çö / 2000-08-13 / ¿ÀÈÄ 8:53:50 / 211.176.174.12
Á¶È¸¼ö : 144
|
[Áú¹®] °Ô½ÃÆÇ Áú¹®ÀÌ¿¡¿ä
|
¾È³çÇϼ¼¿ä
´Ù¿î ¹ÞÀº °Ô½ÃÆÇÀ» Ç®¾î¼ ½ÇÇà½ÃÅ°°í Àִ¿¡
±Û À» ¾²°í µî·ÏÀ» ÇÏ·Á¸é ¿¡·¯°¡ ¹ß»ýÇÕ´Ï´Ù
¿¡·¯ ¸Þ¼¼Áö´Â====>
ADODB.Field (0x800A0BCD)
BOF ¶Ç´Â EOF°¡ ÂüÀ̰ųª, ÇöÀç ·¹Äڵ带 »èÁ¦Çß½À´Ï´Ù. ¿äûÇÑ ÀÛ¾÷¿¡ ÇöÀç ·¹Äڵ尡 ÇÊ¿äÇÕ´Ï´Ù.
/beefkorea/freewebboard/wrote.asp, line 62
ÀÔ´Ï´Ù sql¸¦ »ç¿ëÇÏ°í ÀÖ±¸¿ä 2000À» ¾²°í ÀÖ½À´Ï´Ù
°Ô½ÃÆÇ db´Â »ý¼ºÀÌ µÇ´Âµ¥ line62 ±¸¹®ÀÌ
¹Ù·Î À̺κÐÀ̰ŵç¿ä=====
V_Email=DataCommand1("C_Email_N")
V_ManagerMail=DataCommand1("C_ManagerMail_N")
====>
ÇØ°áÁ» ÇØÁÖ¼¼¿ä
¹Ø¿¡ Àü¹®À» º¸³»µå¸³´Ï´Ù
ÇØ´çdb¿¡´Â C_Email_NÀÌ »ý°å°í µî·Ïµµ ‰ç´Âµ¥
¾Ë ¼ö°¡ ¾ø½À´Ï´Ù ...²ÀÁ» ÇØ°áÇØ ÁÖ¼¼¿ä..
<%@ LANGUAGE="VBSCRIPT" %>
<%
Response.Buffer=True
P_ID=Request("P_ID")
P_Name=Trim(Request("F_Name"))
P_Email=Trim(Request("F_Email"))
P_Url=Trim(Request("F_Url"))
P_Subject=Replace(Trim(Request("F_Subject")), "'", "''")
P_Contents=Replace(Request("F_Contents"), "'", "''")
P_Password=Trim(Request("F_Password"))
V_Year=Year(date)
V_Month=Month(date)
if V_Month<10 then
V_Month=0&V_Month
end if
V_Day=Day(date)
if V_Day<10 then
V_Day=0&V_Day
end if
V_Date=V_Year&"-"&V_Month&"-"&V_Day
V_Time=Time()
V_Reference=0
V_Error=1
V_ErrorString=""
if P_Name="" then
V_Error=0
V_ErrorString="À̸§À» ÀÔ·ÂÇϼ¼¿ä. "
end if
if P_Subject="" then
V_Error=0
V_ErrorString=V_ErrorString+"Á¦¸ñÀ» ÀÔ·ÂÇϼ¼¿ä. "
end if
if P_Contents="" then
V_Error=0
V_ErrorString=V_ErrorString+"³»¿ëÀ» ÀÔ·ÂÇϼ¼¿ä. "
end if
if V_Error=1 then
Response.Cookies("Dream_Data")("K_Name")=P_Name
Response.Cookies("Dream_Data")("K_Email")=P_Email
Response.Cookies("Dream_Data")("K_Url")=P_Url
Response.Cookies("Dream_Data").Expires=Date+100
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_Email_N, C_ManagerMail_N FROM boardbeef WHERE C_ID_N='"&P_ID&"'"
cmdTemp.CommandType = 1
Set cmdTemp.ActiveConnection = DBConnection
DataCommand1.Open cmdTemp, , 0, 1
V_Email=DataCommand1("C_Email_N")====>À̺κÐÀÌ¿¡¿ä..
V_ManagerMail=DataCommand1("C_ManagerMail_N")
DataCommand1.Close
DBConnection.Close
Set DdtaCommand1=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 MAX(C_Index_PIN) FROM boardbeef_"&P_ID&"_M"
cmdTemp.CommandType = 1
Set cmdTemp.ActiveConnection = DBConnection
DataCommand1.Open cmdTemp, , 0, 1
V_Index=DataCommand1(0)
if IsNumeric(V_Index)=False then
V_Index=1
else
V_Index=V_Index+1
end if
DataCommand1.Close
DBConnection.Close
Set DdtaCommand1=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 MAX(C_Class_N) FROM boardbeef_"&P_ID&"_M"
cmdTemp.CommandType = 1
Set cmdTemp.ActiveConnection = DBConnection
DataCommand1.Open cmdTemp, , 0, 1
V_Class=DataCommand1(0)
if IsNumeric(V_Class)=False then
V_Class=1
else
V_Class=V_Class+1
end if
V_IP=Request.ServerVariables("Remote_Addr")
V_Sql="INSERT INTO boardbeef_"&P_ID&"_M (C_Index_PIN, C_Name_N, C_Email_A, C_Url_A, C_Subject_N, C_Contents_N, C_Password_N, C_Class_N, C_Order_N, C_Depth_N, C_Approval_N, C_Opposition_N, C_IP_N, C_Date_N, C_Time_N, C_Reference_N) VALUES ("&V_Index&", '"&P_Name&"', '"&P_Email&"', '"&P_Url&"', '"&P_Subject&"', '"&P_Contents&"', '"&P_Password&"', "&V_Class&", 0, 0, 0, 0, '"&V_IP&"', '"&V_Date&"', '"&V_Time&"', 0)"
DBConnection.Execute(V_Sql)
DataCommand1.Close
DBConnection.Close
Set DdtaCommand1=Nothing
|
|
|
|