Reply to Re: Joining search queries

Your name:

Reply:


Posted by gosha bine on 09/18/07 08:21

On 17.09.2007 23:22 Alec wrote:
> Sorry newbie question...
>
> I have made two different search queries on the same table.
>
> How can I join these together in one list, so the results from the
> first query come listed before the second, ie keeping the same order.

$results = array();

while($row = mysql_fetch_assoc($query_1))
$results[] = $row;

while($row = mysql_fetch_assoc($query_2))
$results[] = $row;


If this is not what you're looking for, please be more specific.



--
gosha bine

makrell ~ http://www.tagarga.com/blok/makrell
php done right ;) http://code.google.com/p/pihipi

[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

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