Using logged-in username in SQL Plugin Posted by François Bachmann 19 Aug 2004 09:07 GMT-0000 posts: 35 Hi all I'm trying to use a SQL plugin and I need a way to reference the current logged in user within the SELECT statement, like the No value assigned in the statement below: SELECT * FROM MyTable WHERE username = No value assigned Any advice ? TIA Frankie
Posted by sylvie greverend 21 Aug 2004 11:46 GMT-0000 posts: 1092 I just added this possibility to the CVS . Plugin disabledPlugin sql cannot be executed. 0 for the first ?, 1 for the second ?.... the $var must be global ... so you need to be very careful tu use this plugin It is not very usable if you make an error. ps: you can always find the source of the plugin in sourceforge viewcvs : http://cvs.sourceforge.net/viewcvs.py/tikiwiki/tiki/lib/ (SF is down now, can't give you the address) and copy the file in the release you are using)