LOG<6>|Run Query ' ver. 1.6
ALTER TABLE LOG ADD STICKY BOOL DEFAULT 0;
-Journo
-
-Rattle out, you out hiding under OZ rock
-minister, shmuck, fly to Canberra
-stush half of air fair fee in ya pocket.
-
-Oh yes, have the right words at the destination.
-Airhostess gives you a blow job, none do masturbation.
-
-bud@
-
-Long Sword Fight
-
-I elbow, hide at back
-my sword, very long.
-
-Test, know the distance
-or poke and thrust
-as a joke, hit me in the heart?
-
-Whip, you judged
-in 30 seconds of the fight.
-
-bud@
-
-FISH
-
-How you do that,
-have Army, even
-even not allowed?
-
-bud@
-
-
-Emancipator - Natural Cause https://youtu.be/R2h6eQBlUkA
-
-A minster like Peter Dutton
-is not natural selection.
-
-He will go from Australia
-first boat offered to a new shore.
-
-A parasite in politics.
-Cancer to Australian society.
-
-bud@
\ No newline at end of file
my $rv;
my $st;
my $stmtCat = "SELECT ID, NAME, DESCRIPTION FROM CAT ORDER BY ID;";
-my $stmt ="SELECT rowid, ID_CAT, DATE, LOG, AMOUNT, AFLAG, RTF, STICKY FROM LOG ORDER BY STICKY DESC, DATE DESC, rowid DESC;";
+my $stmt ="SELECT rowid, ID_CAT, DATE, LOG, AMOUNT, AFLAG, RTF, STICKY FROM LOG WHERE STICKY =1 ORDER BY DATE DESC, rowid DESC;";
$st = $db->prepare($stmtCat);
$rv = $st->execute() or die "<p>Error->" & $DBI::errstri & "</p>";
###############
#
# Uncomment bellow to see main query statement issued!
- # print $cgi->pre("### -> ".$stmt);
+ print $cgi->pre("### -> ".$stmt);
#
my $tfId = 0;
my $id = 0;
if ( $rv < 0 ) {
print "<p>Error->" & $DBI::errstri & "</p>";
}
+
+ &buildLog;
+
+ $stmt ="SELECT rowid, ID_CAT, DATE, LOG, AMOUNT, AFLAG, RTF, STICKY FROM LOG WHERE STICKY != 1 ORDER BY DATE DESC, rowid DESC;";
+ $st = $db->prepare($stmt);
+ $rv = $st->execute() or die or die "<p>Error->" & $DBI::errstri & "</p>";
+ if ( $rv < 0 ) {
+ print "<p>Error->" & $DBI::errstri & "</p>";
+ }
+
+ &buildLog;
+
+sub buildLog {
+
while ( my @row = $st->fetchrow_array() ) {
$id = $row[0];# rowid
}
} #while end
+}#buildLog
if ( $tfId == 1 ) { $tfId = 0; }
else { $tfId = 1; }