CodeIgniter Forums
how to get User Database Activity's - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: how to get User Database Activity's (/showthread.php?tid=64605)



how to get User Database Activity's - Chandini - 03-10-2016

Hi to all,

I Have a database tables in the name of local_posts,post_comment,user_feedback...
I want user activity s based on these tables.. suppose user perform the some comments on post comment table ... and feedback table . i want result latest database activity based on user ..


RE: how to get User Database Activity's - shaheb - 03-11-2016

make another table with the name 'activities' and save every action in that table with the table reference. then query in table activities and popuplate data with respoective table.

example:

activities: (id, object, object_id, date_time, active) where object is feedback and comments and object_id is feedback'table id etc ......


RE: how to get User Database Activity's - Wouter60 - 03-11-2016

Use the "Rat" library that Avenirer has made.
https://github.com/avenirer/CodeIgniter-Rat