Jump to content

Mixing tables in chronological order


khalid

Recommended Posts

Hello, I'm really hoping someone can help with a solution to a problem I have...

 

I have a comments box that records input with date, time and username. This is displayed in order of date and record in one table. E.g.

 

Username: Khalid
Comment: Hello
Date: 27th July 2011 13:00

 

I have another table that records financial values via a different input area. E.g.

 

Username: Khalid
Gross Sale: £5,000
Loan Value: £2,500
Cash Value: £2,500
Date: 27th July 2011 13:00

 

I want to be able to mix the tables in some form so when a financial value is recorded it is displayed as a comment in the comments table.

 

The financial values are on a separate table so they can be pulled and statistics formed of total sales etc.

 

Can anyone suggest a way so that either the financial value(s) are duplicated as a comment or inserted as a comment but also accessible for the creation of statistics etc?

 

Thanks in advance!

 

 

Link to comment
https://forums.phpfreaks.com/topic/242734-mixing-tables-in-chronological-order/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.