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

Valid format for update() with CatLinks.CategoryID ?

Quote Reply
Valid format for update() with CatLinks.CategoryID ?
Hi,

I'm trying to write a script, that will update some links with new categories.

However, I'm getting an error:

PROCESSING: Andytest test test (validate_and_email)

Quote:
A fatal error has occured:

CategoryID cannot contain the value '25846
25850
25821' at /home/user/domain.com/cgi-bin/directory/admin/Plugins/ValidationSystem.pm line 242.

Please enable debugging in setup for more details.

The values are built up like so:

Code:
$add->{'CatLinks.CategoryID'} = join("\n",$IN->param($num.'-CatLinks.CategoryID'));

..giving something like:

25846\n25850\n25821

Can anyone suggest why I'm getting that error? (also tried with \r\n)

I've also tried it with:

Code:
$add->{'CatLinks.CategoryID'} = $IN->param($num.'-CatLinks.CategoryID');

..but that only gets the *last* category ID I want :/

TIA

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 4637 May 11, 2008, 4:18 AM
Thread Re: [Andy] Valid format for update() with CatLinks.CategoryID ?
Wychwood 4514 May 11, 2008, 5:16 PM
Thread Re: [Wychwood] Valid format for update() with CatLinks.CategoryID ?
Andy 4514 May 11, 2008, 11:52 PM
Thread Re: [Andy] Valid format for update() with CatLinks.CategoryID ?
Andy 4531 May 12, 2008, 2:27 AM
Thread Re: [Andy] Valid format for update() with CatLinks.CategoryID ?
Wychwood 4513 May 12, 2008, 9:57 AM
Post Re: [Wychwood] Valid format for update() with CatLinks.CategoryID ?
Andy 4483 May 12, 2008, 10:01 AM
Thread Re: [Andy] Valid format for update() with CatLinks.CategoryID ?
brewt 4506 May 12, 2008, 1:32 PM
Post Re: [brewt] Valid format for update() with CatLinks.CategoryID ?
Andy 4469 May 12, 2008, 2:02 PM