I have a list with values from the db, and with jquery ui I can change the sorting order of the list witch is great!
But now I wonder how I can save the changed order to the db? With a do until, but how?
This is what I got so far.
sql = "SELECT * FROM links ORDER BY u.avd_id DESC;"
set rs = conn.Execute (sql)
if saveList="saveList" then
userIdet = session("user_id")
sql3="delete from links where userId="& userIdet &";"
set rs3=conn.execute(sql3)
response.write " $('li','#myList').each(function(i,li) { "
sql= "INSERT INTO links SET headline='"& headline &"',datum='"& datum &"',links_adress='"& links_adress &"', userId=" & userId & " ;"
conn.Execute (sql)
response.write" })"
response.redirect("links.asp")
end if
I would really need some help, thanks! /Claes