Hi guys, Just a quick question. I have a bit of code that loops through all the recordsets in the database and prints them onto a page. See code below. How do i modify the code to just print the last recordset entered? Thanks in advance!!!
'Looping through the records until the end of the records
Do while Not recordset.eof
Response.Write "Ticket : " & recordset("id") & "<br>"
Response.Write "Name : " & recordset("name") & "<br>"
Response.Write "Email : " & recordset("email") & "<br>"
Response.Write "mobile : " & recordset("mobile") & "<br><br>"
Response.Write "Pixels : " & recordset("pixel") & "<br><br>"
'move on to the next record
recordset.MoveNext
loop
'Looping through the records until the end of the records
Do while Not recordset.eof
Response.Write "Ticket : " & recordset("id") & "<br>"
Response.Write "Name : " & recordset("name") & "<br>"
Response.Write "Email : " & recordset("email") & "<br>"
Response.Write "mobile : " & recordset("mobile") & "<br><br>"
Response.Write "Pixels : " & recordset("pixel") & "<br><br>"
'move on to the next record
recordset.MoveNext
loop