Currently, to delete links in one of my plugins, I am using the $table->delete( { ID => $ID } ) statement.
I've just come across a problem with this. It leaves the entries in lsql_CatLinks and the count in lsql_Category does not go down. Is there a built in function to completly delete a link from the database, or would I be better creating my own code to do something like;
1) Delete from lsql_Links
2) Delete all occurences of that ID in lsql_CatLinks
3) Downgrade the number of links in the main categories, and sub-categories within it.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
I've just come across a problem with this. It leaves the entries in lsql_CatLinks and the count in lsql_Category does not go down. Is there a built in function to completly delete a link from the database, or would I be better creating my own code to do something like;
1) Delete from lsql_Links
2) Delete all occurences of that ID in lsql_CatLinks
3) Downgrade the number of links in the main categories, and sub-categories within it.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!