Gossamer Forum
Quote Reply
Condition problem
I use this code in a Global
my $user = $_[0];
and
$cond->add(LinkOwner => Like => "%$user%");

If user have name like nir and another user have name like nir123
The use nir will get results from the second use,
Is there a way to solve this, that the LinkOwner will need to be equal the user
Quote Reply
Re: [nir] Condition problem In reply to
I think I find the solution
$cond->add(LinkOwner => $user);
Quote Reply
Re: [nir] Condition problem In reply to
Yup, or:

->add('LinkOwner','=',$user)

:)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates