Re: Standard DBI Proposal
- From: Darren New <dnew@xxxxxxxxxx>
- Date: Thu, 25 Oct 2007 19:39:24 -0700
Donal K. Fellows wrote:
I want to make databases easy to use. If that means it's a bit harder to
write the interface, so be it.
It would be nice, but how do you handle code like
if ("" != $_GET['name'])
$sql .= "WHERE name like '" . esc($_GET['name']) . "%' AND ";
(Yes, it's PHP. Deal. :-)
I often do this sort of thing with a dozen different form fields, building up a query clause by clause. If I had only prepared statements, would I need 2^N statements?
--
Darren New / San Diego, CA, USA (PST)
Remember the good old days, when we
used to complain about cryptography
being export-restricted?
.
- Follow-Ups:
- Re: Standard DBI Proposal
- From: Donal K. Fellows
- Re: Standard DBI Proposal
- From: tom.rmadilo
- Re: Standard DBI Proposal
- References:
- Standard Database Interface?
- From: tcltkdev
- Re: Standard Database Interface?
- From: Sean Woods
- Re: Standard Database Interface?
- From: tcltkdev
- Re: Standard Database Interface?
- From: Sean Woods
- Re: Standard Database Interface?
- From: thelfter@xxxxxxxxx
- Re: Standard Database Interface?
- From: Sean Woods
- Standard DBI Proposal (was: Re: Standard Database Interface?)
- From: Donal K. Fellows
- Re: Standard DBI Proposal (was: Re: Standard Database Interface?)
- From: Sean Woods
- Re: Standard DBI Proposal
- From: Donal K. Fellows
- Standard Database Interface?
- Prev by Date: Re: Standard DBI Proposal
- Next by Date: Re: How to spawn ssh in new Window?
- Previous by thread: Re: Standard DBI Proposal
- Next by thread: Re: Standard DBI Proposal
- Index(es):
Relevant Pages
|