Help for this page

Select Code to Download


  1. or download this
    sub show_news {
      my ($dbh, $article_id) = @_;
      my $sth = $dbh->prepare("...");
      $sth->execute($article_id);
    }
    
  2. or download this
    $dbh->disconnect;
    
    $sth    = $dbh->prepare(...) or die ...
    
  3. or download this
    UPDATE news_articles 
    SET article_title = ? 
    WHERE $article_id = ?