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 13:40

Simon Stienen wrote:
> On 2007-04-03 06-46-03, Jerry Stuckle wrote:
>>> a) Why isn't the query represented by a QUERY object?
>> Because it's called a db object. Maybe my description was confusing.
>> The query need not be a SELECT. It could be an INSERT, CREATE TABLE or
>> anything else.
>
> Oh... So queries are always SELECTs and INSERTs etc. are not queries...
> thanks for teaching me *that*, as this is really something completely new
> for.
>
> And good to know that you automagically know what HIS DB object does and
> what not.

It's pretty obvious from the code what his object does. I've used
similar code may times before.

The difference is you're thinking of it as a db connection with a
separate result object. That's a very valid way of doing things.

However, his code is a little different (and just as valid). He sees
the query as a method of the object. Each way has its advantages and
disadvantages.

--
==================
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

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