xuly nhap tau

<!--#include file="connect.asp"-->

<%

ma=request.Form("mat")

ten=request.Form("tent")

opencn

set tau=server.CreateObject("ADODB.recordset")

tau.open "select * from tau where mat='"&ma&"'",cn,3,3

if tau.eof = true then

cn.execute "insert into tau([mat],[tentau]) values('"&ma&"','"&ten&"')"

response.Write("Da them tau moi thanh cong !")

else

response.Write("Ma tau nay da ton tai !")

End if

%>

Bạn đang đọc truyện trên: AzTruyen.Top

Tags: #tong#van