summaryrefslogtreecommitdiff
path: root/cgi/persons.cgi
diff options
context:
space:
mode:
authorivan <ivan>1999-04-22 05:58:06 +0000
committerivan <ivan>1999-04-22 05:58:06 +0000
commitcab57b5d930ba2b9d2308f155edeac5fdeef0021 (patch)
tree385bae2284ff28735f6b87dd75ba08ca5941cf2e /cgi/persons.cgi
parent582478ebeca009066b0445dca96d56c10d6a2f6e (diff)
*** empty log message ***
Diffstat (limited to 'cgi/persons.cgi')
-rwxr-xr-xcgi/persons.cgi6
1 files changed, 3 insertions, 3 deletions
diff --git a/cgi/persons.cgi b/cgi/persons.cgi
index 0a84508..d011913 100755
--- a/cgi/persons.cgi
+++ b/cgi/persons.cgi
@@ -1,5 +1,5 @@
#!/usr/bin/perl -Tw
-# $Id: persons.cgi,v 1.6 1999-04-22 05:54:53 ivan Exp $
+# $Id: persons.cgi,v 1.7 1999-04-22 05:58:06 ivan Exp $
# Copyright (c) 1999 Ivan Kohler. All rights reserved.
# This program is free software; you can redistribute it and/or modify it under
# the same terms as perl itself
@@ -27,7 +27,7 @@ $dbh = DBI->connect( $data_source, $user, $password )
unless ( $cgi->param('magic') ) { #first time through
- my $sth = $dbh->prepare( "SELECT * FROM PERSONS" )
+ my $sth = $dbh->prepare( "SELECT * FROM $table" )
or die $dbh->errstr;
my $rv = $sth->execute;
die $sth->errstr unless $rv;
@@ -85,7 +85,7 @@ unless ( $cgi->param('magic') ) { #first time through
$cgi->param( $field, $1);
}
}
- my $statement = 'INSERT INTO PERSONS ( '.
+ my $statement = "INSERT INTO $table ( ".
join(', ', @fields ).
' ) VALUES ( '.
join( ', ', map { $dbh->quote($cgi->param($_)) } @fields ).