my $mysql = Net::MySQL->new(
database => 'db',
user => 'user',
password => 'pass'
);
$mysql->query(q{
INSERT INTO processo (process, name, email, type) VALUES ($process,$lawyer, $email, $type)
});
my $mysql = Net::MySQL->new(
database => 'db',
user => 'user',
password => 'pass'
);
What is happening here? Is this supposed to be the database name, user name, and password for connecting to an logging into the database or just for example? If it is, then it should be
my $mysql = Net::MySQL->new(
database => 'actual_db_name',
user => 'database_user_name',
password => 'this_user_password'
);
$mysql->query(q{
INSERT INTO processo (process, name, email, type) VALUES ($process,$lawyer, $email, $type)
});
I don't know if the quoting is managed by your modules but I've always found you need to quote anything but an integer:
INSERT INTO processo (process, name, email, type) VALUES ('$process','$lawyer', '$email', '$type')
});
"Lawyer: ",textfield('nome'),
Overlooked typo obviously. :-)
Hope some of this led you down the debugging path.