Chào các bạn! Vì nhiều lý do từ nay Truyen2U chính thức đổi tên là Truyen247.Pro. Mong các bạn tiếp tục ủng hộ truy cập tên miền mới này nhé! Mãi yêu... ♥

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: Truyen247.Pro

Tags: #tong#van