Choose your database:
AnySQL
MySQL
MS SQL Server
PostgreSQL
SQLite
Firebird
Oracle
SQL Anywhere
DB2
MaxDB

Subscribe to our news:
Partners
Testimonials
Steve Morton: "First let me thank you for making this application Free. Best deal I have ever see for what it does".
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".

More

Add your opinion

PHP Generator for MySQL online Help

Prev Return to chapter overview Next

OnCalculateFields

This event occurs whenever the values of calculated columns are (re)computed in read-only views (List, Print, Export, etc). Live examples.

 

Signature:

function OnCalculateFields($rowData, &fieldName, &$value)

 

Parameters:

$rowData

An associative array of values of the currently processed row

$fieldName

The name of the currently processed calculated column

$value

The value to be assigned to the column

 

Example 1:

This code snippet sets the value of the full_name column according to the values stored in the first_name and last_name columns.

 

if ($fieldName == 'full_name') {

    $value = $rowData['first_name'] . ' ' . $rowData['last_name'];

 

Example 2:

This code snippet sets the value of the age column according to the birthday.

 

if ($fieldName == 'age') {

    $dateOfBirth = new DateTime($rowData['birthday']);

    $dateInterval = $dateOfBirth->diff(new DateTime());

    $value = $dateInterval->format('%y');

}

 

See also:

OnCalculateControlValues.



Prev Return to chapter overview Next