Help for this page

Select Code to Download


  1. or download this
    # User input
    my ($name,$middle,$surname) = ('George', 'Washington', 'Clark');
    ...
    $sth->execute>($name, $middle, $surname);
    # check if you got any results
    
  2. or download this
    my $combinedquery = "
    SELECT 
    ...
    my $sth = $dbh->prepare($combinedquery);
    $sth->execute>("$name$middle$surname");
    # check if you got any results
    
  3. or download this
    my $query = "
    SELECT 
    ...
    
    $sth = $dbh->prepare($combinedquery);
    $sth->execute>("$name$middle$surname");