我真的不喜欢使用经典的 asp,但我必须......
我有这个表格:
<form name="QRForm" id="frm" method="post" action="qry.asp">
<input name="orderno" type="int" value="<%=Order_id%>">
<input name="" type="submit" value="Go To Next Step" />
</form>
这段代码qry.asp
用于处理订单 ID
<%Set MySQLConn = Server.CreateObject("ADODB.Connection")
MySQLConn.Open "driver={SQL Server};server=..."
GetOrder = "SELECT * FROM Jobs WHERE JobID='%" & Order_id &"%';"
Set ShowOrder = MySQLConn.execute(GetOrder)
if ShowOrder.EOF then%>
<div class="initiatives">
<p>No such record</p>
</div>
<%else
Do While Not ShowOrder.EOF%>
<div class="initiatives">
<p><span><%=ShowOrder("JobID")%></span><br />
<%=(ShowOrder("Payments"))%></p>
</div>
<%ShowOrder.Movenext
Loop
end if%>
我做错了什么还是需要转换Order_Id
为整数?如果有怎么办?我已经尝试过cast
或convert
通过会话通过它,但无济于事。任何帮助,将不胜感激。