if( param('Εμφάνιση Guestbook!') ) { $sth = $dbh->prepare( 'SELECT * FROM guestbook' ); $sth->execute; while( $row = $sth->fetchrow_hashref ) { print table( {class=>'user_form'}, Tr( td( {-width=>'25%'}, {class=>'name'}, $row->{name} ), td( {-width=>'50%'}, {class=>'email'}, $row->{email} ), td( {-width=>'25%'}, {class=>'date'}, $row->{date} ) ), Tr( td( {class=>'host'}, "Ευχή του Ιησού" ), td( {colspan=>2}, {class=>'tip'}, $row->{pray} ) ), Tr( td( {class=>'tip'}, "Προσωπική Ορθοδοξοπνευματική Εμπειρία" ), td( {colspan=>2}, {class=>'remark'}, $row->{remark} ) ), Tr( td( {colspan=>3}, {class=>'host'}, $row->{host} ) ), ), br() x 2; } unless ($sth->rows ) { print span( {class=>'tip'}, "Δεν υπάρχουν νέες εγγραφές, yet!" ); } }