Jump to content

[SOLVED] Returning recent database changes


twsowerby

Recommended Posts

Hi all,

 

Is there a function that will return the details of the last database modification that was done?

 

Basically I have users classified based on various attributes stored against them. If a user updates their details, I need to be able to run a script which checks what was updated and then re-classifies the user.

 

Regards,

 

Tom

Link to comment
Share on other sites

I feel like someone asked this before and we came to the conclusion no. I may be wrong. I couldn't find anything in the search.

 

Maybe you can put a text file on the server and update it every time a query is run. That may be a lot of changes to make, but you'll get the information that you need.

Link to comment
Share on other sites

Awesome, I love it when I have to find a way around seemingly impossible things when I'm working to a deadline.  ::)

 

I'll try and figure something out, but if any of you come up with any brilliant ideas then please post!

 

Thanks,

 

Tom

Link to comment
Share on other sites

Probably the only way is to create another table and insert some data based on what the user has done. So if they updated their profile you can insert into the new table things like

 

username, table_updated, fields_update, date_updated

 

Then you can just query the one table to get back your results. not sure how detailed you want it to be.

 

Ray

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.