Help for this page

Select Code to Download


  1. or download this
    my $username = 'LanX';
    my $req1 = $db->xprepare(ph { "SELECT from users WHERE nick = '$userna
    +me'" });
    $username = 'Eily';
    my $req2 = $db->xprepare(ph { "SELECT from users WHERE nick = '$userna
    +me'" });
    $req1->xexecute();
    $req2->xexecute();
    
  2. or download this
    my %vars = (rank => 'Pope', xp => 4);
    my $req1 = $mytool->xprepare(ph { "SELECT from users WHERE rank = '$_{
    +rank}' AND xp > '$_{xp}'" } %vars );
    $req1->execute(); #There's no reason your new object can't call its me
    +thod execute BTW