Thanks again for responding.
Unfortunaly it didn’t work, but I get different errors now which help. This is what I used.
@EVAL return $modx->db->select('field1,field2,field3,field4','custom_table','user='.$modx->getLoginUserName());
The problem is that I get a SQL error. It says that there is No Column called "value" of "$modx->getLoginUserName()" So in the example I’m logged in as "moises". The error says there is no column called "moises" So I know the code is working. Not sure why its adding the value of the whrere field and thinking its a column.
MODx encountered the following error while attempting to parse the requested resource:
« Execution of a query to the database failed - Unknown column ’moises’ in ’where clause’ »
When I use this it works fine:
@EVAL return $modx->db->select('field1,field2,field3,field4','custom_table','user="moises"');
I tried several combinations, but can;t get it to work. Either returns the error above or no results.
Any thoughts? I love the fact that there are many ways to get the same results with modx.