Help for this page

Select Code to Download


  1. or download this
    $dbh->do('INSERT INTO users (name, day, phone) VALUES($name, $day, $nu
    +mber)');
    
  2. or download this
    my $bill = 'Text plus $ted'; # no interpolation.  
    my $bill = "Text plus $ted"; # Interpolation occurs.
    
  3. or download this
    my $sth = $dbh->prepare('INSERT INTO users (name, day, phone) VALUES(?
    +,?,?)' );
    $sth->execute( $name, $day, $number );