E
Enno Lenze
Huhu!
Wenn ich mein scirpt ausfuehre meldet der apache:
DBD::mysql::st execute failed: You have an error in your SQL syntax;\
check the manual that corresponds to your MySQL server version for \
the right syntax to use near 'in='2004-05-05',out='2004-10-06' where\
sn='AB0001'' at line 1 at (...)
sub edit_entry {
$dbh = DBI->connect($dsn, $user, $password);
$sth = $dbh->prepare("update $table SET \
sn=?,model=?,describtion=?,remarks=?,condition=?,in=?,out=? where \
sn=?");
$sth->execute($q{sn},$q{model},$q{describtion},$q{remarks},$q{condition},$q{in},$q{out},$q{sn});
$dbh->disconnect;
print "<h2><font color=\"green\">line addet/changed for \
$q{sn}</font></h2>\n";
$q{field}='sn';
$q{pattern}=$q{sn};
&search;
}
ich komme aber net drauf wo der fehler leigt.
gruss, enno
Wenn ich mein scirpt ausfuehre meldet der apache:
DBD::mysql::st execute failed: You have an error in your SQL syntax;\
check the manual that corresponds to your MySQL server version for \
the right syntax to use near 'in='2004-05-05',out='2004-10-06' where\
sn='AB0001'' at line 1 at (...)
sub edit_entry {
$dbh = DBI->connect($dsn, $user, $password);
$sth = $dbh->prepare("update $table SET \
sn=?,model=?,describtion=?,remarks=?,condition=?,in=?,out=? where \
sn=?");
$sth->execute($q{sn},$q{model},$q{describtion},$q{remarks},$q{condition},$q{in},$q{out},$q{sn});
$dbh->disconnect;
print "<h2><font color=\"green\">line addet/changed for \
$q{sn}</font></h2>\n";
$q{field}='sn';
$q{pattern}=$q{sn};
&search;
}
ich komme aber net drauf wo der fehler leigt.
gruss, enno