To build complex dbface applications, you might need to do not only one query to the target databases, some of them to fetch values, and use this values in the result application script.

---
vars:
    var1: !script execute-sql-query-to-get-value
    var2: !func execute-php-function-to-get-value
    var3: !url http://your-rest-url-to-fetch-this-value
    var4: !var var
    var5: !get get-value
    var6: !post post-value
    var7: !input get-or-post-value
    var8: direct-value
process: your-php-process-functions
app: script
---
data: php_function_name