<% p_page_m_id = InputValue(request("p_page_m_id")) p_page_url = lcase( InputValue(request("p_page_url")) ) sql = "select p_num from page_master where p_page_url = '"&p_page_url&"'" Set Rs = Dbcon.Execute (sql) If rs.eof Then Call InsertQuery("p_page_m_id, p_page_url", "page_master") else Call UpdateQuery("p_page_m_id", "page_master", "where p_page_url = '"&p_page_url&"'") End If rs.close : Set rs = Nothing Dbcon.close : Set Dbcon = nothing %>