prepare("UPDATE topic_list SET status='on' WHERE tptopid=$topid AND status='new'");
$sth->execute;
if ($sth->rows) {
$ret .= "$topid approved.
\n";
} else {
$ret .= "$topid already acted on.
\n";
}
}
if ($act eq "D") {
$sth = $dbh->prepare("UPDATE topic_list SET status='deny' WHERE tptopid=$topid AND status='new'");
$sth->execute;
if ($sth->rows) {
$ret .= "$topid denied.
\n";
} else {
$ret .= "$topid already acted on.
\n";
}
}
}
return $ret;
_code?>
# None
_c?>