Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Recalcitrant placeholders

by Bod (Curate)
on Jul 04, 2021 at 20:31 UTC ( #11134633=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $crid = $crm->db->selectrow_array("SELECT idPerson FROM Person WHER
    +E email = ? OR altEmail = ?", undef, $data{'email'}, $data{'email'});
    
    print "ERROR: " . $crm->db->errstr if $crm->db->err;
    
    print "#$data{'email'}# - $crid";
    
  2. or download this
    SELECT idPerson FROM Person WHERE email = 'me@examle.com' OR altEmail 
    += 'me@example.com'
    
     90
    102
    
  3. or download this
    my $query = $crm->db->prepare("SELECT idPerson FROM Person WHERE email
    + = ? OR altEmail = ?");
    $query->execute($data{'email'}, $data{'email'});
    my $crid  = $query->fetchrow_array;
    print "ERROR: " . $crm->db->errstr if $crm->db->err;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2022-01-25 17:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (67 votes). Check out past polls.

    Notices?