You are here: Re: Should I use mysql, mysqli or PDO? « PHP Programming Language « IT news, forums, messages
Re: Should I use mysql, mysqli or PDO?

Posted by Michael Fesser on 11/05/07 08:48

..oO(james@jgoode.co.uk)

>I've written my own database class using PHP's mysql functions, rather
>than using mysqli, and I've added functions to automatically get,
>insert and update.

The old MySQL extension misses some really important features like
prepared statements and native transaction support.

>In the end, it's a lot faster than the built-in
>mysqli, and it didn't take long to write.

Did you test that? Your wrapper class is written in PHP, while the
MySQLi and PDO extensions are written in C and directly call the MySQL
API. Of course there will be some overhead because of the advanced
features (especially in PDO), but I doubt that this makes much of a
difference. What really counts are the queries sent to the DB and the
table structure, not the used interface (IMHO).

Micha

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация