htmanning has asked for the wisdom of the Perl Monks concerning the following question:
That code puts the last 10 headlines in a single txt file. Thanks.$SQL = "SELECT * FROM $database_table order by date DESC, ID DESC limi +t 10"; $sth = $dbh->prepare($SQL); $sth->execute; open(TXTFILE, ">$rootpath$categoryDir$frontPage"); while ($pointer = $sth->fetchrow_hashref) { $fullpath = $pointer->{'fullfilepath'}; $name = $pointer->{'filename'}; $thumbnail = $pointer->{'thumbnail'}; $image = $pointer->{'image'}; $imagewidth = $pointer->{'imagewidth'}; $headlinelink = $pointer->{'headlinelink'}; print TXTFILE <<TEXT; <a href=$url NOUNDERLINE id="headline"><font size="+1" face=arial>$tit +le</font></a><br> <font size="1">$category - $month $day, $year $catsiteshow</font><br> TEXT }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Way to insert some ad code
by eric256 (Parson) on Jan 25, 2007 at 20:08 UTC | |
by Fletch (Bishop) on Jan 25, 2007 at 20:25 UTC | |
by eric256 (Parson) on Jan 25, 2007 at 20:28 UTC | |
by htmanning (Friar) on Jan 25, 2007 at 21:22 UTC | |
|
Re: Way to insert some ad code
by ikegami (Patriarch) on Jan 25, 2007 at 20:42 UTC |