Re: Pros/Cons of using mysqli prepared statments
| From: | Alex Nikitin | Date: | Thu, 04 Nov 2010 22:11:40 +0000 |
| Subject: | Re: Pros/Cons of using mysqli prepared statments | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-309326@lists.php.net to get a copy of this message | ||
One thing to remember is that dealing with results from prepared statements
is different then getting results from queries, so if you are using both,
confusion can easily set in (and lets face it, prepared statements arent
always the best thing to use)... if its of any help, i have written a class
to work around that, instantiate it with a query or result object from a
statement and you get a uniform way to get the result array...
http://pastebin.com/sAhZJcNX
~ Alex
On Thu, Nov 4, 2010 at 5:38 PM, Jay Blanchard <jblanchard@pocket.com> wrote:
> [snip]
> Just don't go too far.
> [/snip]
>
> I absolutely agree! Doing SP's for SP sake is not desired and be truly
> careful about cascading the procedures. And always, ALWAYS document your
> code and put copious comments in the SP's.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>