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
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!