You are here: Re: Objects and Arrays « PHP Programming Language « IT news, forums, messages
Re: Objects and Arrays

Posted by Jerry Stuckle on 04/03/07 03:51

Simon Stienen wrote:
> On 2007-04-03 04-52-47, Jerry Stuckle wrote:
>> Not at all a bad design. Any class will do the same thing. It handles
>> a single query. If you make another query, that will overwrite the
>> original query. If you want two concurrent queries, you use two db objects.
>
> One query per _DATABASE_? Sorry, but I think this is a somewhat limited
> approach.

No, the DB object represents a QUERY. You can have one QUERY open at a
time. This is pretty standard for objects - each instantiation handles
a specific object.

In this case the DB object represents a query (and its results), so you
can have one query open at a time per DB object. The same is pretty
true in all OO languages. I've used similar in C++, Java and even VBScript.

It's all in understanding the purpose of the object.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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