Hello guys,
i'm searching to insert a record in a table inside a MSSql server database.
I've understood where is the error but i can't understand how to resolve it...
I start with a CGI:
$q = new CGI;
print $q->header,
...
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...
May someone can help me please?
$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();