Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Odd Database Behavior

by grinder (Bishop)
on Dec 15, 2003 at 20:15 UTC ( [id://314896]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub nick_exists {
      return $db->do( "select 1 from members where nickname="   
        . $db->quote($_[0])
      );
    }
    
  2. or download this
    BEGIN {
    my $ss = $db->prepare( 'select 1 from members where nickname=?' ) or d
    +ie;
    ...
        $res and defined $res->[0] ? 1 : 0;
    }
    }
    
  3. or download this
    use Memoize;
    memoize('nick_exists');
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://314896]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-19 12:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found