How would I use PHP to run two different type mysql querys and display the results in the same table ?

I need to run the two query's below and than echo the results as one table. Can anyone tell me how ? What I need to do is show along side the meter_date field the number of days it has been from today's date that it was last updated.
SELECT To_days( meter_date ) - TO_DAYS( last ) FROM `meter`

SELECT * FROM meter WHERE hub > 1 AND service_type ='Wet' ORDER BY meter_date DESC, unit ASC

Open in new window

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nemws1Database AdministratorCommented:
How about doing the calculation along with the select:
SELECT meter.*, TO_DAYS(meter_date)-TO_DAYS(last) AS last_meter_update
FROM meter
WHERE hub > 1
  AND service_type = 'Wet'
ORDER BY meter_date DESC, unit ASC

Open in new window

Although I think you want your date calculation to be:

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
GD_GRAYAuthor Commented:
Thank you...
LoL and yes your right, I did want the calculation the other way. You have a wonderful Christmas..
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.