Hi, all.
I'm experiencing something odd, and I was hoping someone might shed some
light on it for me.
If I do this:
$sth = $dbh->prepare("delete from attendees where name = ?");
This will fail:
$sth->execute($dbh->quote($key));
...but this will succeed:
$sth->execute($key);
I don't think there's anything wrong with the result of quote(), because in
the same place, this will work:
$dbh->do("delete from attendees where name = " . $dbh->quote($key) . ";");
If someone could tell me what's going on here, I'd be grateful. It seems
that adding quotes to the key, as quote() is doing, makes it the statement
fail to match. But, it seems like there should be quotes used here... (Also,
FWIW, the presence or absence of a semicolon at the end of the statement seems
to not matter for the prepare...)
aTdHvAaNnKcSe!
--
Mason Loring Bliss [EMAIL PROTECTED] Cthulhu fhtagn!
http://blisses.org/ awake ? sleep : random() & 2 ? dream : sleep;