<%
Dim zobjRS,zobjRS1,zstrCatName,zstrUpdateType
zstrUpdateType = "add"
Set zobjRS1 = Server.CreateObject("ADODB.Recordset")
If zblnEditCat Then
zstrSQL = "SELECT CategoryName FROM categories WHERE Category LIKE " & zintCatID
zobjRS1.Open zstrSQL, zobjConn, adOpenForwardOnly, adLockReadOnly, adCmdText
If Not zobjRS1.EOF Then
zstrCatName = zobjRS1("CategoryName")
zstrUpdateType = "edit"
Response.Write "edit category details:"
Else
Response.Write "category requested could not be found. enter new category details:"
End If
zobjRS1.Close
Else
Response.Write "enter new category details:"
End If
%>