Created
March 29, 2012 15:58
-
-
Save betobaz/2238919 to your computer and use it in GitHub Desktop.
Sugar query to get change log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$query = "SELECT ".$focus->get_audit_table_name().".*, users.user_name FROM ".$focus->get_audit_table_name().", users WHERE ".$focus->get_audit_table_name().".created_by = users.id AND ".$focus->get_audit_table_name().".parent_id = '$focus->id'".$order; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment