N
nmoinvaziri
I have a perl dbi script that is freezing up when you insert too much
text.
The code I have is something like this..
$sth = $dbh->prepare("INSERT INTO tb_news VALUES (?,?,?,?,?,?)")
or &msg("Error", "Cannot prepare statement: " . $dbh->errstr);
local $date = param('year') . "-" . param('month') . "-" .
param('day');
local $title = param('title');
local $description = param('description');
$sth->execute($count, $date, $title, $description, $image_url, 'N')
or &msg("Error", "Cannot execute statement: ". $sth->errstr);
The description field is a MySQL text column. On the form, if I enter
in anything that exceeds 1159 or around 1160 characters, the post query
freezes up.
Is this a server setting perhaps?
Nathan
text.
The code I have is something like this..
$sth = $dbh->prepare("INSERT INTO tb_news VALUES (?,?,?,?,?,?)")
or &msg("Error", "Cannot prepare statement: " . $dbh->errstr);
local $date = param('year') . "-" . param('month') . "-" .
param('day');
local $title = param('title');
local $description = param('description');
$sth->execute($count, $date, $title, $description, $image_url, 'N')
or &msg("Error", "Cannot execute statement: ". $sth->errstr);
The description field is a MySQL text column. On the form, if I enter
in anything that exceeds 1159 or around 1160 characters, the post query
freezes up.
Is this a server setting perhaps?
Nathan