Hi,
I have an ASP page that is posting to a mysql db.
I want to get the Auto Increment 'cusID' of the last record and put it in a URL string.
ne tips ideas
ASP so far
Set rs2 = Server.CreateObject("ADODB.Recordset")
autoidsql = "SELECT LAST_INSERT_ID() FROM tbl_customers"
rs2.Open autoidsql, conn
tmpid = rs2
Response.Redirect("custviewdeal.asp?key=" & Server.URLEncode(tmpid))
I have an ASP page that is posting to a mysql db.
I want to get the Auto Increment 'cusID' of the last record and put it in a URL string.
ne tips ideas
ASP so far
Set rs2 = Server.CreateObject("ADODB.Recordset")
autoidsql = "SELECT LAST_INSERT_ID() FROM tbl_customers"
rs2.Open autoidsql, conn
tmpid = rs2
Response.Redirect("custviewdeal.asp?key=" & Server.URLEncode(tmpid))