I have a table for users. But when the user makes any changes to their profile, I save them in the pace table until I approve them. Then the data is copied to the current table and deleted from the temp table.
What I want to achieve is that when viewing data in the admin panel or on a page where the user can double-check before sending, I want to write one query that will allow me to retrieve data from both tables where id in both equals $ userid. Then I want to display them in a table, where the old value appears in the left column and the new value appears in the right column.
I found several sql solutions, but I'm not sure how to use them in php to echo the results, since the columns in both have the same name.
source
share