Help for this page

Select Code to Download


  1. or download this
    my $cd  = CD->retrieve(1);
    my @cds = CD->retrieve_all;
    my @cds = CD->search(year => 1980);
    my @cds = CD->search_like(title => 'October%');
    
  2. or download this
    sub generic_id_fetch {
       my ($table,$id,@field) = @_;
       my $field = @field ? join(',',@field) : '*';
       $dbh->selectrow_hashref("select $field from $table where id=?",unde
    +f,$id);
    }