Help for this page

Select Code to Download


  1. or download this
    $db->do('UPDATE counters SET pagecounter = pagecounter + 1 WHERE pagen
    +ame = ?',
       undef, $pagename);
    
  2. or download this
    my $sth = $db->prepare(
       'UPDATE counters SET pagecounter = pagecounter + 1 WHERE pagename =
    + ?');
    $sth->execute($pagename);
    
  3. or download this
    my ($counter) = $db->selectrow_array('SELECT pagecounter FROM counters
    + WHERE pagename = ?', undef, $pagename);
    
  4. or download this
    sub increase_pagecount_for {
       my ($db, $pagename) = @_;
    ...
    
       return $counter;
    } ## end sub increase_pagecount_for