Choose your database:
MS SQL Server
SQL Anywhere

Subscribe to our news:
George Westrup: "I have saved so much time using your products. Also you are quick to respond to every question I have had. Thanks for the great support".
David Lantz: "Thank you, this is by far the simplest, and most friendly utility for building db record system I have ever used. I wish I could get my systems guys at the office to purchase this for our company would be so very helpful and speed up a lot of work. I for one have used it for everything from a simple inventory record of my house, to a members record for my church just little pet projects and a test bed to test my own db builds and theories before having to hand code at the office..... it is a lot of fun to work with".


Add your opinion

PHP Generator for MySQL online Help

Prev Return to chapter overview Next


This event allows you to add environment variables for a page. You can access the values of these variables in any server-side event of the page via GetEnvVar() method of the Page class. To set custom variables to be used in any server-side event of any application page, use the global OnAddEnvironmentVariables event handler.



function OnAddEnvironmentVariables($page, &$variables)




An instance of the Page class declared in components/page.php.


An associative array of environment variables. Use it to add your own variables for a page.


Example 1:

The following code defines a new variable, which can be used in lookup filter criteria, on data filtering, as a default value.


$variables['DATE_TWO_MONTHS_AFTER_NOW'] = date('Y-m-d', strtotime('+2 months'));



Prev Return to chapter overview Next