Reply to Joining SQL Results

Your name:

Reply:


Posted by Alec on 10/08/07 09:11

Sorry newbie question...

I have made two different search queries on the same table that both
retain the identical column information.

$resultfirst = @mysql_query ("SELECT company, address1, address2 FROM
table1 WHERE category=active ")

$resultsecond = @mysql_query ("SELECT company, address1, address2 FROM
table1 WHERE category=inactive ")

How can I now join these together in one list, with the results from
the first query being listed before the second, ie keeping the same
order.

Many thanks

Alec Thorne

[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

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