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)
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:
..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:
..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!
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!