|
![](/images/resource/spacer.gif) |
|
ช่วยดูโค้ดหน้า เซฟ ให้หน่อยค่ะ คือ ข้อมูลที่รับเข้ามาหน้า adddata จะให้กรอกวันที่รูปแบบนี้ 05/10/2010 ค่ะ แต่เวลาเซฟลง database จะให้มานแยกฟิดค่ะ เป็น 3 ฟิด คือ วัน เดือน ปี ต้องแก้โค้ดยังไงค่ะ |
|
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
ช่วยดูโค้ดหน้า เซฟ ให้หน่อยค่ะ คือ ข้อมูลที่รับเข้ามาหน้า adddata จะให้กรอกวันที่รูปแบบนี้ 05/10/2010 ค่ะ แต่เวลาเซฟลง database จะให้มานแยกฟิดค่ะ เป็น 3 ฟิด คือ วัน เดือน ปี ต้องแก้โค้ดยังไงค่ะ
Code (ASP)
<%
Dim Conn,strSQL,objExec
Set Conn = Server.Createobject("ADODB.Connection")
Conn.Open "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath("databasestatement.mdb"),"" , ""
strSQL = ""
strSQL = strSQL &"INSERT INTO statement "
strSQL = strSQL &"(customer,day,month,year) "
strSQL = strSQL &"VALUES "
strSQL = strSQL &"('"&Request.Form("bannerURL")&"','"&Request.Form day("start")&"','"&Request.Form month("start")&"', '"&Request.Form Year("start")&"') "
Set objExec = Conn.Execute(strSQL)
Conn.Close()
Set objExec = Nothing
Set Conn = Nothing
%>
Tag : ASP, Ms Access
![](/images/adv.jpg?v=1001)
|
|
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
2010-12-15 16:45:15 |
By :
gusjang |
View :
1218 |
Reply :
1 |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
'"& day(Request.Form("...")) &"'
'"& month(Request.Form("...")) &"'
'"& year(Request.Form("...")) &"'
|
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
2010-12-16 21:45:51 |
By :
jumbomaster |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
|
|
|
![](/images/digitalocean-banner.jpg)
|
Load balance : Server 02
|