/[sql-web-session]/index.cgi
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /index.cgi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 25 by dpavlin, Sat Apr 18 23:35:57 2009 UTC revision 26 by dpavlin, Sat Apr 18 23:54:30 2009 UTC
# Line 86  if ( my $group_by = param('lookup_col') Line 86  if ( my $group_by = param('lookup_col')
86          my $sth = $dbh->prepare( $sql );          my $sth = $dbh->prepare( $sql );
87          $sth->execute( @data );          $sth->execute( @data );
88          $t = time() - $t;          $t = time() - $t;
89          print qq|$t<table><tr><th>|, join(qq|</th><th>|, @cols), qq|</th></tr>|;          print qq|<code>$sql<code>|;
90            print qq|<table><tr><th>|, join(qq|</th><th>|, @cols), qq|</th></tr>|;
91          while ( my @row = $sth->fetchrow_array ) {          while ( my @row = $sth->fetchrow_array ) {
92                  my $n = shift @row;                  my $n = shift @row;
93                  $n = 'NULL' unless defined $n;                  $n = 'NULL' unless defined $n;
94                  print qq|<tr><td><a href="#">$n</a></td><td>|, join(qq|</td><td>|, @row), qq|</td></tr>|;                  print qq|<tr><td><a href="#">$n</a></td><td>|, join(qq|</td><td>|, @row), qq|</td></tr>|;
95          }          }
96          print qq|</table>|;          print qq|</table>|;
97          print qq|<code>$sql</code>|;          print $sth->rows, qq| rows in $t s|;
98          exit;          exit;
99  }  }
100    

Legend:
Removed from v.25  
changed lines
  Added in v.26

  ViewVC Help
Powered by ViewVC 1.1.26