Hash Variables: Difference between revisions

From nuBuilderForte
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:


To find what Hash Variables are available you can use [[PHP#nuHash|nuHash()]].
To find what Hash Variables are available you can use [[PHP#nuHash|nuHash()]].
Example of using Hash Variables in PHP.
<source lang="php">
$s = "CREATE TABLE #TABLE_ID# SELECT * FROM invoice";
nuRunQuery($s);
</source>

Revision as of 13:51, 15 July 2017

Hash Variables allow you to customise your PHP code.

Before running any custom PHP code, nuBuilder does a search and replace with all currently available Hash Variables and refered to in your code.

To find what Hash Variables are available you can use nuHash().


Example of using Hash Variables in PHP. <source lang="php">

$s = "CREATE TABLE #TABLE_ID# SELECT * FROM invoice";

nuRunQuery($s);

</source>