|
![](/images/resource/spacer.gif) |
|
ASP บันทึกข้อมูลจาก1From ลง 2 ตาราง ผมมีฐานข้อมูลแล้วมีตาราง 2 ตารางผมจะบันทึกข้อมูลจาก From ASP |
|
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
ให้ทำการ Query เพื่อ Insert 2 บรรทัดได้เลยครับ
|
![](/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 :
16 ต.ค. 2547 16:17:22 |
By :
webmaster |
|
![](/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) |
|
ผมไม่เข้าใจจริงๆครับเพราะเริ่มหัดเขียนและก็เรียนจากwebนี้ครับ Code ที่ผมเขียนแต่ส่งได้ตารางเดียวคือ
MainData ครับ ดังตัวอย่าง
Sample2.asp
<%
Set Conn=Server.Createobject("ADODB.Connection")
Conn.Open "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath("Main_Database.mdb"),"" , ""
'หรือจะใช้เป็น Conn.Open "product","",""
sql ="Select * From MainData where Order_No='"&Request.Form("Order_No")&"'" ' ป้องกัน barcode ซ้ำ
Set RS =Server.CreateObject("ADODB.Recordset")
RS.open Sql,Conn,1,3 MainData
ผมต้องแทรกตาราง Estimate_Working_Hour ตรงใหนครับช่วยเขียนให้ด้วยครับผมไม่รู้จริงๆ
ผมขอขอบคุณมากครับ
|
![](/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 :
18 ต.ค. 2547 14:07:38 |
By :
วีรชัย |
|
![](/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 01
|