#!/usr/bin/perl -Tw use CGI qw(:standard); #use CGI::Carp; use DBI; my $dbh = DBI->connect("DBI:mysql:book","user", "password"); $|++; # Make the pipes piping hot! my $cgiquery = new CGI; my $myself = $cgiquery->self_url; print $cgiquery->header(-expires=>'now'); print $cgiquery->start_html(-"title"=>'Entry Administration ', -"author"=>'brian@brie.com', -"meta"=>{'keywords'=>'brian database', 'copyright'=>'Copyright 1997 Big Brie'}, -"BGCOLOR"=>'white'); print "

Database Administration Interface

\n"; print '

Developed by the man himself

Mr. Brian Lavender' , "\n"; print "

Table of data waiting for administration

\n"; print 'Public User Page'; print "\n\n"; print "

This page will have new features coming.\n"; print '

' , "\n"; print 'It will have a methods of moving the data into the other table, removing it, and editing it. It will also require a password for access'; print "

\n"; my $query = "select * from entries"; my $sth = $dbh->prepare($query); if ($sth->execute) { print "\n"; #Make this table a real table print "\n"; foreach (@{$sth->{NAME}}) { # print the Headers of the table print "\n"; } print "\n"; print "\n"; while (my @row = $sth->fetchrow()){ #Get each row from the Msql object print "\n"; foreach (@row) { # print all the elements print "\n"; } print "\n"; } print "
", $_ , "
", $_ , "
\n"; } print q{


(C) 1997

Brie Web Publishing
PO Box 19184
Sacramento, CA 95819
(916) 443-6195

}; print $cgiquery->end_html, "\n"; # That is the end of it