Re: Pros/Cons of using mysqli prepared statments
| From: | Shreyas Agasthya | Date: | Thu, 04 Nov 2010 08:19:17 +0000 |
| Subject: | Re: Pros/Cons of using mysqli prepared statments | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-309283@lists.php.net to get a copy of this message | ||
Tamara,
In one of the earlier threads, it was mentioned mysqli APIs are more secure,
faster, and actually maintained.
Also, if you use some of the mysql_xxx(), you actually get a warning saying
that it will be or it is being deprecated and paves the way for you to
approach the same thing with mysqli_xxx().
The seniors perhaps can give you more facts which they have seen and
experienced.
Regards,
Shreyas
On Thu, Nov 4, 2010 at 1:18 PM, Tamara Temple <tamara@tamaratemple.com>wrote:
> I'm wondering what the advantages/disadvantage of using prepared statements
> with mysqli are. I'm used to using the mysqli::query and mysqli::fetch_assoc
> functions to deal with retrieving data and bulding my sql statement in php
> code.
>
> Tamara Temple
> -- aka tamouse__
> tamara@tamaratemple.com
>
>
> "May you never see a stranger's face in the mirror."
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Regards,
Shreyas Agasthya