Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Wychwood] Valid format for update() with CatLinks.CategoryID ?

Quote Reply
Re: [Wychwood] Valid format for update() with CatLinks.CategoryID ? In reply to
Hi,

Doing:

Code:
$DB->table('CatLinks')->delete({ LinkID => $link->{ID} });

..deletes the link - cos the tables are interlinked, so thats a no go <G>

Quote:
$DB->table('CatLinks')->insert({ LinkID => $link->{ID}, CategoryID => $_ });

I'll give that a go - not sure it will work though (seem to remember i tried it before - and it gave me errors)

Ideally, I'd prefer GT to let me know why the update() isn't likeing the format I was trying to use - but at least the solution I have will work for the momeny :)

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!
Subject Author Views Date
Thread Valid format for update() with CatLinks.CategoryID ? Andy 4678 May 11, 2008, 4:18 AM
Thread Re: [Andy] Valid format for update() with CatLinks.CategoryID ?
Wychwood 4553 May 11, 2008, 5:16 PM
Thread Re: [Wychwood] Valid format for update() with CatLinks.CategoryID ?
Andy 4554 May 11, 2008, 11:52 PM
Thread Re: [Andy] Valid format for update() with CatLinks.CategoryID ?
Andy 4571 May 12, 2008, 2:27 AM
Thread Re: [Andy] Valid format for update() with CatLinks.CategoryID ?
Wychwood 4552 May 12, 2008, 9:57 AM
Post Re: [Wychwood] Valid format for update() with CatLinks.CategoryID ?
Andy 4524 May 12, 2008, 10:01 AM
Thread Re: [Andy] Valid format for update() with CatLinks.CategoryID ?
brewt 4545 May 12, 2008, 1:32 PM
Post Re: [brewt] Valid format for update() with CatLinks.CategoryID ?
Andy 4509 May 12, 2008, 2:02 PM