Help for this page

Select Code to Download


  1. or download this
    $table = param("table");
    $column = param("column");
    ...
    
    $rows = $dbh->selectall_arrayref( "select $column from $table where ke
    +y = '$value'" );
    
  2. or download this
    my %table_cols = ( foo_table => 'foo_column',
                       bar_table => 'bar_column',
    ...
       $sth->execute( $param('value'));
       my $rows = $sth->fetchall_arrayref;
    }