I have 5 tables or more for a logs.
- tbl_product_log
- tbl_user_log
- tbl_customer_log
- tbl_vendor_log
- tbl_quotations_logs
They have no relation with each other. But they have same hierarchy of columns.
- logid
- logdetails
- logdatetime
Every time when, there is something happened in these tables (e.g. 'insert','delete',update) a record inserted in relative table for a log.
Now I want to show all logs in one page. There are 6 tabs in it.
- All Logs
- Product Logs
- User Logs
- Customer Logs
- Vendor Logs
- Quotation Logs
Like this
In Every tab e.g. (products logs, user logs, customer logs ....)
I get all there log data successfully.
Now I want to show all logs data in All
tab like in other tabs.
I tried query by my own but it shows me every thing separately.
Here is my query
SELECT * FROM tbl_product_log, tbl_user_log, tbl_customer_log, tbl_vendor_log, tbl_quotations_logs Limit 20
And here is result
So please tell me how can I achieve this, that all logs data show in All tab
only in three columns like other tabs show the result with one query.
Hop you understand my question.