> Doesn't doing it that way preclude using $dbh->quote? That could mess up
> if the name had a single quote in it.
Placeholders remove the need for manual quoting. One of their
benefits.
--Pete
> On 16 Aug 2001, Harald Fuchs wrote:
>
> > I'd do it like that:
> >
> > my $sql = q{
> > REPLACE INTO services
> > SET friendly = ?,
> > parent = ?,
> > intentional = ?,
> > address = INET_ATON(?),
> > port = ?,
> > timeout = ?,
> > priority = ?
> > };
> > $dbh->do ($sql, undef,
> > $friendly, $parent, $intentional, $address,
> > $port, $timeout, $priority);
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php