Help for this page

Select Code to Download


  1. or download this
    my $dbh = DBI->connect( $whatever… )
    ...
    my $sth = $dbh->prepare( "select field from table where id != ?" );
    $sth->execute( '$in{cid}' );  # an 8-character string is the placehold
    +er value
    ...
    
  2. or download this
    my %in;
    $in{cid} = "something";
    ...
    my $sth = $dbh->prepare( "select field from table where id != ?" );
    $sth->execute( $in{cid} );  # the hash element value is the placeholde
    +r value
    ...