/* Check to make sure we are connected to the database before allowing access to the home page. If not connected, go connect and initialize; otherwise, welcome the user.\ */ if(!database.connected()) redirect("init.htm"); /* The statment below simply deletes the relationship code, indicated by the id passed in as a REQUEST property. */ if(request.ID != null) { project.lock(); database.execute("delete from dep_rel where dep_rel.rel_ID = " + request.ID); project.unlock(); } redirect("relation.htm");