Re: adding the results of mysql_query

[email protected] ("M. Sokolewicz")
Newsgroups php.general
Message-ID <[email protected]>
It Maq wrote:
> Hi,
> 
> I need to add the result of 4 calls to mysql_query (4 different queries) to the same object so that i can mysql_fetch_object in the same loop.
> 
> Is that possible? otherwise is there any other alternative?
> 
> Thank you
> 
> 
>       ____________________________________________________________________________________
> Be a better friend, newshound, and 
> know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> 

use a UNION (look it up in the mysql manual)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.