Help for this page
my $table = 'book'; my $condition = '1'; ... while (my $row = $sth->fetchrow_hashref()) { print $row->{'id'},"\t",$row->{'name'},"\t",$row->{'location'},"\n"; +; }
my $sql = "SELECT id, name, location FROM $table WHERE ? ORDER BY ? ?" +; ... $sth->execute($condition,$sort_field,$sort_order);