Nik has asked for the wisdom of the Perl Monks concerning the following question:
but i cant get it working. its just dont ordering by right! iam gettign date as my $date = strftime( "%d %b, %H:%M", localtime );if( $name eq 'showlog' ) { $select = $dbh->prepare( "SELECT * FROM guestlog ORDER BY date DESC +" ); $select->execute; print br; print table( {class=>'info'} ); while( $row = $select->fetchrow_hashref ) { print Tr( td( {width=>'35%', class=>'aquamarine'}, +$row->{host} ), td( {width=>'15%', class=>'white'}, +$row->{date} ), td( {width=>'45%', class=>'cyan'}, +$row->{passage} ), td( {width=>'5%', class=>'lime'}, +$row->{counter} ) ); } print '</table>';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trying to order by date
by Joost (Canon) on Aug 04, 2005 at 10:37 UTC | |
|
Re: Trying to order by date
by polettix (Vicar) on Aug 04, 2005 at 10:44 UTC | |
by Nik (Initiate) on Aug 04, 2005 at 11:17 UTC | |
by Joost (Canon) on Aug 04, 2005 at 11:42 UTC | |
| |
|
Re: Trying to order by date
by nedals (Deacon) on Aug 04, 2005 at 15:39 UTC | |
|
Re: Trying to order by date
by TedPride (Priest) on Aug 04, 2005 at 11:30 UTC |