Re: finding compile time errors
- From: "Rik Wasmus" <luiheidsgoeroe@xxxxxxxxxxx>
- Date: Fri, 13 Jun 2008 19:24:09 +0200
On Fri, 13 Jun 2008 19:09:39 +0200, Jeff <jeff@xxxxxxxxxxxxxxx> wrote:
How does PHP handle placeholders in MySQL?
I'm used to doing this:
$sql='SELECT some_field FROM some_table WHERE another_field = ? AND other_field = ?';
When you do this (at least in perl), you don't have to worry about SQL insertion.
Yup, if you use either the mysqli extension or PDO.
http://nl2.php.net/manual/en/book.mysqli.php
http://nl2.php.net/manual/en/book.pdo.php
I'm not really a fan of how they altered the manual lately, but this should still be easily found:
Manual => Function Reference => Database Extensions
--
Rik Wasmus
....spamrun finished
.
- References:
- finding compile time errors
- From: Jeff
- Re: finding compile time errors
- From: Michael Fesser
- Re: finding compile time errors
- From: Jeff
- finding compile time errors
- Prev by Date: Re: finding compile time errors
- Next by Date: Re: Light at the end of the tunnel - and it's NOT a train !
- Previous by thread: Re: finding compile time errors
- Next by thread: Re: finding compile time errors
- Index(es):
Relevant Pages
|