Re: mysql prepared statements
im working on this. contact me via email if you'd like to help...
Andrew Watson <gleep@cfl.rr.com> wrote in message
news:5.1.0.14.0.20011026220832.00a20c40@pop-server...
>
> for example in PERL DBD::mysql you can prepare statements like so:
>
> $sql = "update user_list set first_name = ? where id = ?"
> $han = $dbh->prepare($sql);
>
> $han->execute('andrew',1);
> $han->execute('bill',2);
> ....
>
> this is a very useful thing that's implemented in a lot of different
> languages (PERL, Java... )and i thought people might get a lot of use out
> of it in php...
> it abstracts the details of escaping strings, enclosing them in single
> quotes, and type checking from the developer to make things easier. it
> also speeds up execution in some circumstances.
>
Thread (5 messages)