Choose your database:
MS SQL Server
SQL Anywhere

Subscribe to our news:
Peter Robinson: "As a tech savvy company director, I wanted an inexpensive web based database application to manage all aspects of my business. As with most humans I find developing purely by CLI very hard and do not have the will or time to invest in improving my skills. I was looking to find a nice human friendly GUI to design and build my application, which is when I came across PHP Generator for MySQL.

Whilst you still need a great understanding of logic and a small amount of programming ability to get the specific results you require, I am very happy with the speed of progress I have been making with this invaluable tool.

With all the standard libraries included, this product makes normal requirements such as JavaScript form validation, lookup selectors, on click events, auto complete, detailed searches, multiformat exports, rss feeds and username security straight forward and quick.

Having any changes made via the GUI written to the web server at the click of a button makes testing out ideas quick and easy without fear of breaking your application.

To conclude, I couldn't find any other product on the market that came close to offering the amount of options this does, and I do hope that more products like this come out in the future, with the hope of eventually eradicating the need to program all together".

Craig Cordell: "The simplicity of your code generator is fantastic. We've evaluated dozens of others over the past few years but have yet to find one that is as easy to use as yours".


Add your opinion

PHP Generator for MySQL online Help

Prev Return to chapter overview Next


This event occurs after the page is completely loaded from the server. It allows you, for example, to add additional filters to the dataset.



function OnPageLoaded()



This method has no parameters.


Example 1

The following code is used in our Schema Browser Demo to filter database objects belonging to the selected database:




Here applyDatasetFilter() is a function defined in the schema_browser_utils.php file as follows:


function applyDatasetFilter(Dataset $dataset) {

    if (GetApplication()->IsGETValueSet('database'))

        $value = GetApplication()->GetGETValue('database');


        $value = ArrayUtils::GetArrayValueDef($_COOKIE, 'database');

    if (StringUtils::IsNullOrEmpty($value)) {

        $globalConnectionOptions = GetGlobalConnectionOptions();

        $value = $globalConnectionOptions['database'];


    if (!StringUtils::IsNullOrEmpty($value)) {

        $dataset->AddFieldFilter('Database_name', new FieldFilter($value, '='));

        setcookie('database', $value);




Example 2

The following code is used in our Feature Demo to filter countries according to the values selected in the form:


// default values

$minLifeExpectancy = 40;

$maxLifeExpectancy = 90;


// checking values in the browser address line 

if (GetApplication()->isGetValueSet('minLifeExpectancy') &&

       GetApplication()->isGetValueSet('maxLifeExpectancy')) {

    $minLifeExpectancy = GetApplication()->GetGETValue('minLifeExpectancy');

    $maxLifeExpectancy = GetApplication()->GetGETValue('maxLifeExpectancy');


// or (if not found) in the session

} else if (isset($_SESSION['minLifeExpectancy']) && 

           isset($_SESSION['maxLifeExpectancy'])) {

    $minLifeExpectancy = $_SESSION['minLifeExpectancy'];

    $maxLifeExpectancy = $_SESSION['maxLifeExpectancy'];



// saving calculated values to the session

$_SESSION['minLifeExpectancy'] = $minLifeExpectancy;

$_SESSION['maxLifeExpectancy'] = $maxLifeExpectancy;


// applying filter to the dataset


    "life_expectancy >= {$minLifeExpectancy} ".

    "AND life_expectancy <= {$maxLifeExpectancy}");

Prev Return to chapter overview Next