[FX.php List] Combine two sets of search results into one table?
Dale Bengston
dale.bengston at gmail.com
Fri Jul 20 11:20:18 MDT 2012
Yes! Absolutely you can just tack the second set of results to the first with another foreach loop. Merging arrays will give you better control over knitting the results (re-sorting, for example) if that's desired. If not, go easy!
Dale
On Jul 20, 2012, at 9:50 AM, BEVERLY VOTH wrote:
> Denis, you can merge the arrays with PHP
>
> OR
> you can just make one table and put these together on output (that is, if you don't need to merge them in some other way with sorts, etc.)
>
> TABLE
> foreach (first query results) {
> TR..
> }
> foreach (second query results) {
> TR..
> }
> /TABLE
>
> Beverly
>
> On 20 Jul 2012, at 10:00 AM, Denis Somar wrote:
>
>> This is just for outputs sake. I have two tables Requests and Quotes and rather than displaying two separate tables with results I was trying to determine if I could show query results from each table in one combined HTML table
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list