It's late, and I'm not sure I fully get what you are trying to do (or rather how you are doing it).
But what jumps out at me, is that how the category.CategoryID is handled, is a bit complicated, and by using "ID" to hold and/or pass the parameter, you are confusing the Links table which uses "ID" as the parameter.
If everything is working, except for the insert link code, change your "ID" parameter to something else like Category_ID, and see if that fixes it.
PUGDOG� Enterprises, Inc.
The best way to contact me is to NOT use Email.
Please leave a PM here.
But what jumps out at me, is that how the category.CategoryID is handled, is a bit complicated, and by using "ID" to hold and/or pass the parameter, you are confusing the Links table which uses "ID" as the parameter.
If everything is working, except for the insert link code, change your "ID" parameter to something else like Category_ID, and see if that fixes it.
PUGDOG� Enterprises, Inc.
The best way to contact me is to NOT use Email.
Please leave a PM here.