Saving/accessing current user logged in to site to DB
-
I have the following short codes in page. The first does the actual insert and 2nd shows records after insert. I have a shortcode ‘[currentuser_username]’ which shows current logged in site user. I’d like to insert that into db in Insert and then use that in the SQL. Is it possible to do this (shortcode within shortcode)?
[abase form=”insert,1″ table=”life_task_tracking” elements=”trackHours, taskKey” columns=”Hours^trackHours, Task^taskKey$INSERT” ack=”green”]
<p><br class=”spacer_” /></p>[abase sql=”Select lt.taskName as Task, ltt.trackHours as HoursSpent, taskDate as Date from life_task_tracking ltt, life_tasks lt where ltt.taskKey = lt.taskID “]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Saving/accessing current user logged in to site to DB’ is closed to new replies.