WHERE Active user
Hi, how do you get the current id of the logged user in WHERE???
i am not getting anything xd:
transaction_user_id='$_GET[USER_ID]' >>> just keeps the list loading
transaction_user_id=ActiveUser.user_id >>> errors
transaction_user_id=USER_ID >>> just list everything
transaction_user_id='4' >>> this filters the list but only if u are user with user_id = 4 xd?
Any help??
Edit okay..... i am really a beginner with this all sorts of stuffs however i was able to tweak the file making it work in this way:
i went to Tbl_transactionsController.php and added some lines of codes:
$cu=get_active_user('user_id');
$db->where("transaction_user_id=$cu");
i manually defined $cu and it works. However everytime i go to the client and the files reload ofc and it will dissapear making it not work again? So how do you add this properly? in the mean time ill stick with this since it works somehow.