nathanvit has asked for the wisdom of the Perl Monks concerning the following question:
If i put the code (i've put below) before or after the "print" i can insert the record inside the table. On the contrary, and this is my problem, if i put the code inside the "if(param())" block, it doesn't insert anything...$q = new CGI; print $q->header, ...
$dbh = DBI->connect('dbi:ODBC:fax',$user, $passwd, { RaiseError => 1, AutoCommit => 1 }) or die "Non riesco a connettermi +!!\n"; $in=$dbh->prepare("INSERT INTO $tabella(NumPratica) VALUES ('3456337') +;"); $in->execute(); $dbh->disconnect();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: insert into mssql table
by gellyfish (Monsignor) on Feb 02, 2005 at 11:05 UTC | |
|
Re: insert into mssql table
by mkirank (Chaplain) on Feb 02, 2005 at 11:53 UTC | |
|
Re: insert into mssql table
by sasikumar (Monk) on Feb 02, 2005 at 12:58 UTC | |
by nathanvit (Beadle) on Feb 02, 2005 at 15:24 UTC | |
|
Re: insert into mssql table
by kprasanna_79 (Hermit) on Feb 02, 2005 at 13:24 UTC |