<% lesson_id = checkstr(request("id"),1) set rs = server.CreateObject("adodb.Recordset") sql = "select lesson from lessonset where lesson_id = "&lesson_id if lesson_id > 0 then rs.open sql,conn,3 if not rs.eof then lesson = rs("lesson") %> <% end if end if %>