You are here: Re: mysqli: prepared statements and fetch_array method? « PHP Programming Language « IT news, forums, messages
Re: mysqli: prepared statements and fetch_array method?

Posted by Andy Hassall on 08/30/05 01:33

On Mon, 29 Aug 2005 18:05:50 -0400, Tom D <noone@nowhere.com> wrote:

>I'm rewriting a database interface that our company currently has.
>Currently it's using the Pear::DB interface, but we found that that was
>introducing a bit too much overhead. I'm rewriting the interface to use
>mysqli. Most of what the interface does is to simplify getting results in
>the form of arrays (ordered and associative). Most of the code using the
>interface used sql queries with placeholders and parameters. For that
>reason I'd like to use prepared statements in mysqli, but I'm running into
>a few problems.

This isn't a direct answer, it's one of those annoying "you're doing X with Y
but have you looked at Z" answers: if overhead was the main issue, have you
compared it with ADOdb? It fares quite well in benchmarks, particularly when
compared with PEAR which seems to do quite badly.

ADOdb emulates prepared statements for older versions of MySQL, but also has
mysqli support which from a glance at the code does use mysqli_stmt_bind_param,
so is using native prepared statements.

Can't comment as to whether it would solve the other issues, though.

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

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

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