Re: finding compile time errors



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
.



Relevant Pages

  • Re: ActiveState Perl very slow on IIS 6.0
    ... I would worry because calling perl.exe for every hit to a .pl web page is ... > run ActiveState Perl in IIS 5.0 is seems fine to me. ... >> We have moved to IIS 6.0 and suddenly some of our Perl scripts run very ...
    (microsoft.public.inetserver.iis)
  • Re: binmode in 1-liner?
    ... > I am a big fan of Perl 1-liners and I even use them on Windows. ... > thing that bugs me though is that there doesn't seem to be an easy way ...
    (comp.lang.perl.misc)
  • binmode in 1-liner?
    ... I am a big fan of Perl 1-liners and I even use them on Windows. ... thing that bugs me though is that there doesn't seem to be an easy way ...
    (comp.lang.perl.misc)
  • Re: Changing from C thought to Perl
    ... Uri Guttman wrote: ... if you don't want to worry about $1, then assign it or the grab ... I always do assign $1 to a variable directly after a regex, ... > not an issue with perl but with the coder who doesn't rtfm and learn ...
    (comp.lang.perl.misc)
  • Re: Tricky String Replacement
    ... Oh, side note, I am not a big fan of the "-i" opt in perl. ... do use it, make a backup of the files, or test with care. ...
    (comp.unix.shell)