Reply to Re: Need to substitute #where# with $where

Your name:

Reply:


Posted by Marcin Dobrucki on 11/18/62 11:42

comp.lang.php wrote:

>
> "SELECT id, first_name, last_name, (SELECT count(id) #where#) as
> paginate_total, email, address, city, state, zip, phone FROM person
> $where "
>
> You want "#where#" inside the subselect substituted with $where

So basically you are selecting "id, first_name, last_name ..." and
count of the returned results? Why not just ask the DB how many rows it
returned?

/marcin

[Back to original 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

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