<!--#include file="connSQLconnection.asp" -->
<%CODEPAGE="874"%>
<%
sql ="SELECT Reg_Teacher.ID_Teacher, Reg_Teacher.Name_Teacher, Reg_Teacher.Telephon_Teacher, Reg_Faculty.Name_Faculty FROM Reg_Teacher INNER JOIN Reg_Faculty ON Reg_Teacher.ID_Faculty = Reg_Faculty.ID_Faculty where Reg_Teacher.ID_Teacher='"&Request.Form("id")&"'" ' ?????? ???? ???
Set RS =Server.CreateObject("ADODB.Recordset")
RS.open Sql,Conn,1,3
if NOT(RS.EOF) then
response.write("ÃËÑʹÕéÁÕÍÂÙèáÅéÇ")
else
Rs.AddNew
Rs("ID_Teacher") = Request.Form("id")
Rs("Name_Teacher") = Request.Form("name")
Rs("Telephon_Teacher") = Request.Form("tell")
Rs("Name_Faculty") = Request.Form("fac")
Rs.Update
Conn.Close
'response.write("à¾ÔèÁ¢éÍÁÙÅàÃÕºÃéÍÂáÅéÇ")
response.Redirect("Admin_Building.asp")
end if
%>
Error Type:
Microsoft OLE DB Provider for SQL Server (0x80004005)
Cannot insert or update columns from multiple tables.
/Admin_Teacher_Add_0.asp, line 15
นี่ครับไม่ทราบว่าทำไมมัน add ไม่ได้อะ ตรง Rs("Name_Faculty") = Request.Form("fac") ผมใช้เปง List menu อะคับ ช่วยที