|
|
|
|
¹®Èñö / 2000-07-11 / ¿ÀÈÄ 6:35:36 / 211.51.20.144
Á¶È¸¼ö : 111
|
[Áú¹®] ¾÷·Îµå Æû¿¡¼ ¼öÁ¤ÀÌ ¾ÈµÇ°í »õ·Î¿î °ªÀ¸·Î ÀԷµǴµ¥ |
> > > ÂÁ... ¾Æ·¡ ¹®ÀåÀÌ Æ²¸°°Å ¾Æ´Ñ°¡¿ä?
> > >
> > > SELECT pwd sell From data WHERE board_idx = "& request("idx")
> > >
> > >
> > -----------------------------------------------------------
> > sellÀº µðºñ[Ä®·³]
> > data´Â ¾÷·Îµå Æú´õ À̰ŵç¿ä
> > ¸¸¾à¿¡ ÀÌ·± ¹æ½ÄÀ¸·Î ÇÏÁö ¾ÊÀ¸¸é db¿Í Æú´õ°¡ µû·Î ¼öÁ¤µÇ´Â°ÍÀº ¾Æ´Ñ°¡¿ä
> >
> >
> -----------------------------------------------------------
>
> À§ÀÇ ¹®Àå¿¡¼ sellÀº µðºñ°í data´Â ¾÷·Îµå Æú´õ¶ó´Â°Ô ¹«½¼ ¸»¾¸Àΰ¡¿ä?
>
> SELECT´Â SQL¿¡¼¸¸ »ç¿ëµÇ´Â ¹®ÀåÀä...
>
-----------------------------------------------------------
¸» ±×´ë·ÎÀÔ´Ï´Ù.sellÀº mdbÀÇ ÀÛÀº db,data´Â ¾÷·Îµå°¡ ÀúÀå µÇ´Â Æú´õÀÌÁÒ.
¶ÇÇÑ SQL¹®À» »ç¿ëÇÏ¿© insert¹®À» »ç¿ëÇߴµ¥ À߸øµÈ°÷ÀÌ¶óµµ ÀÖ´ÂÁö¿ä...
< !--#include file="convert.asp"-- >
<%
Set db = Server.CreateObject("ADODB.Connection")
db.Open("sell1")
'ÇöÀçÀÇ ±ÛÀÇ ºñ¹Ð¹øÈ£¸¦ °¡Á®¿À´Â Äõ¸®¹®À» ÀÛ¼º
SQL = "SELECT pwd From sell WHERE board_idx = "& request("idx")
'board_idx = UploadForm("board_idx")
brandname =CheckWord(Request.Form("brandname"))
product = CheckWord(Request.Form("product"))
t_short = CheckWord(Request.Form("t_short"))
mcode = CheckWord(Request.Form("mcode"))
country = CheckWord(Request.Form("country"))
specification = CheckWord(Request.Form("specification"))
company = CheckWord(Request.Form("company"))
contactperson = CheckWord(Request.Form("contactperson"))
addre = CheckWord(Request.Form("addre"))
tel = CheckWord(Request.Form("tel"))
fax = CheckWord(Request.Form("fax"))
url = CheckWord(Request.Form("url"))
email = CheckWord(Request.Form("email"))
payment = CheckWord(Request.Form("payment"))
packing = CheckWord(Request.Form("packing"))
fob = CheckWord(Request.Form("fob"))
markets = CheckWord(Request.Form("markets"))
Request.write.sql====À¸·Î ŽºÆ® ÇÑ °á°ú
Set db = Server.CreateObject("ADODB.Connection")
db.Open("sell1")
'ÇöÀçÀÇ ±ÛÀÇ ºñ¹Ð¹øÈ£¸¦ °¡Á®¿À´Â Äõ¸®¹®À» ÀÛ¼º
SQL = "Select pwd from sell where board_idx = " & request("idx")
set result = db.execute(SQL)====ÀÌ°÷¿¡¼ ÀÚ²Ù ¿¡·¯ ¸Þ¼¼Áö°¡ ¶å´Ï´Ù.
pwd=result("pwd")
Set db = Nothing
'ÀԷ¹ÞÀº ºñ¹Ð¹øÈ£¿Í ½ÇÁ¦ ºñ¹Ð¹øÈ£¸¦ ºñ±³ÇÏ¿© ÀÏÄ¡ÇÑ´Ù¸é
if request("pwd") = pwd then
Set db = Server.CreateObject("ADODB.Connection")
db.Open("sell1")
SQL = "UPDATE SELL set name = '" & name &"'"
SQL = SQL & ",email = '" & email & "'"
SQL = SQL & ",url= '" & url & "'"
SQL = SQL & ",payment='" & payment & "'"
SQL = SQL & ",company='" & company & "'"
SQL = SQL & ",country='" & country & "'"
SQL = SQL & ",t_short='" & t_short & "'"
SQL = SQL & ",mcode='" & mcode & "'"
SQL = SQL & ",productt='" & product & "'"
SQL = SQL & ",brandname='" & brandname & "'"
SQL = SQL & ",addre='" & addre & "'"
SQL = SQL & ",tel='" & tel & "'"
SQL = SQL & ",fax='" & fax & "'"
SQL = SQL & ",specification='" & specification & "'"
SQL = SQL & " where board_idx = "& request("idx")
SQL = SQL & " where board_idx = "& request("idx")
db.execute SQL
Set db = Nothing
Response.Redirect "selluplist.asp"
'µ¥ÀÌÅͺ£À̽º¿¡ ÇöÀçÀÇ ·¹Äڵ带 updateÇÏ°í ¸®½ºÆ®·Î µ¹¾Æ°£´Ù.
else
%>
< script language="javascript" >
alert(" Nothing ...password");
history.back();
< /script >
<%End if%>
ÇÑ°¡Áö ´õ Áú¹®À» µå¸®ÀÚ¸é ¼öÁ¤½Ã¿¡ ¾÷·ÎµåµÈ ÈÀÏÀ» ÀçÁöÁ¤ÇÏÁö ¾Ê¾ÒÀ»¶§ÀÇ ¹æ¹ý°ú ¼öÁ¤ÇßÀ»¶§Àǹæ¹ýÀ» ¾Ë°í ½Í½À´Ï´Ù.
²À Á» ºÎŹµå¸³´Ï´Ù.ÀÌ°Å 2ÁÖÀÏ°°Åµç¿ä...T.T
|
|
|
|