$dbh->do("insert into visitor (name) values ('$field');"
my $sth = $dbh->prepare( "insert into visitor(name) values (?)"); $sth->execute($name);
(no subject)
Date: 2005-11-09 03:33 pm (UTC)they should be using
That way, it because $name is never interpolated into a SQL string, it doesn't matter what's in $name. PHP has support for bind variables as well.