% if ($id) { <& m/display_old, $n, $id &> % } else { <& m/display, $n &>

View Older /  % } if ($add) { Add to My List /  % } Back to Main Page

<%args> $n $id => 0 <%init> my $add = 0; my $user = $m->comp('m/get_user'); if (defined $user) { my $dbh = $m->comp('m/connect'); my $comics = $dbh->selectrow_array( 'SELECT comics FROM user WHERE user = ?', undef, $user) || ''; $add = 1 unless $comics =~ /(^|,)$n(,|$)/; }