Replies: 1 comment 2 replies
-
|
Hi ! I added an example to the docs:
https://sql-page.com/functions.sql?function=run_sql#function Does this make it clearer ? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, i'm currently using run_sql to load up a general header file for all my sql pages and one of the things the header file does is read a cookie and load a user from the supplied information. What i am trying to achive is supplying the aquired user id back to the calling page as a variable so i can customise it with a name or data relative to that user however i can't work out how.
The document for run_sql says "Executes another SQL file and returns its result as a JSON array" but doesn't mention how to access this data or how to add things into this result data assuming that it is even possible?
If not is there anyway to return values from a called file back to the calling file?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions