xuly nhap ve
<!--#include file="connect.asp"-->
<%
ma=request.Form("mav")
tau=request.Form("matau")
chieu=request.Form("cd")
gia=request.Form("dg")
gio=request.Form("gxp")
opencn
set ve=server.CreateObject("ADODB.recordset")
ve.open "select * from vetau where mavt='"&ma&"'",cn,3,3
if ve.recordcount =0 then
cn.execute "INSERT INTO vetau([mavt],[mat],[chieudi],[dongia],[gioxp]) values('"&ma&"','"&tau&"','"&chieu&"','"&gia&"','"&gio&"')"
response.Write("Da them ve tau thanh cong !")
else
response.Write("ma ve tau nay da ton tai !")
end if
closecn
%>
Bạn đang đọc truyện trên: AzTruyen.Top