Re: Moving from mysql functions to mysqli or PDO - which is best?
| From: | musicdev | Date: | Fri, 24 May 2013 04:10:00 +0000 |
| Subject: | Re: Moving from mysql functions to mysqli or PDO - which is best? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-321189@lists.php.net to get a copy of this message | ||
I found it easier to use mysqli_* functions as these were mostly identical
to mysql_*. So converting from mysql to mysqli did not require allot of
rewrite.
On Sat, May 18, 2013 at 2:09 PM, dealTek <dealtek@gmail.com> wrote:
> Hi folks,
>
> [post newbie abilities] - I'm attempting to move away from PHP mysql
> functions to something newer, either mysqli or PDO.
>
> I have read various things about them, but I'm curious at this point which
> would be best to learn for the present and future. I'm usually working on
> small to medium size projects.
>
> I understand that PDO has an extra abstraction layer so it can work with /
> convert to other databases like oracle and others fairly easily, but some
> have said that PDO can be a bit slower the MySQLi?
>
> So I would really like to hear opinions on the best choices of either
> MySQLi or PDO.
>
> Also I'm also trying to learn OOP, so I'm looking for a very good working
> PDO and/or mysqli database class - to get started with, that has all the
> basic needs like UPDATE - INSERT - DELETE - QUERY etc. That would be very
> helpful.
>
> Thanks in advance for your opinions!
>
>
> --
> Thanks,
> Dave - DealTek
> dealtek@gmail.com
> [db-3]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>