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

Subscribe to our news:
Partners
Testimonials
Kirby Foster: "Nice software. Small, lightweight, works well. I evaluated lots of software before deciding that your software worked the best for what I do. Both Maestro for MySQL and PHP Generator have saved me lots of time".
Steven Langfield: "I wanted to drop you a mail to say how freaking AMAZING your software is. It will be the best £100 I have ever spent. I have still to read all your documentation to take full advantage but what you have created is truly amazing".

More

Add your opinion

PHP Generator for MySQL online Help

Prev Return to chapter overview Next

OnAfterUpdateRecord

This event occurs when the Update command is executed, and after the actual update.

 

Signature:

function OnAfterUpdateRecord ($page, $oldRowData, $rowData, $tableName, 

       &$success, &$message, &$messageDisplayTime)

 

Parameters:

$page

An instance of the Page class.

$oldRowData

The associative array of old (previous) values of the currently processed row.

$rowData

The associative array of values that corresponds to the currently processed row.

$tableName

The name of processed table.

$success

Indicates whether the last data manipulation statement was successful or not.

$message

A message to be displayed to a user. If the statement completed successfully, the value of this parameter is equal to empty string. If the statement failed, the value of this parameter contains the error message that came from the database server.

$messageDisplayTime

A time interval (in seconds) after which the message will disappear automatically. Default value is 0 (the message will not disappear).

 

Success messages are displayed in green while error messages are displayed in red.

 

Example

if ($success) {

    $message = 'Record processed successfully.';

}

else {

    $message = '<p>Something wrong happened. ' .

        '<a class="alert-link" href="mailto:admin@example.com">' .

        'Contact developers</a> for more info.</p>';

}

 

See also: OnAfterDeleteRecord, OnAfterInsertRecord, OnBeforeUpdateRecord.



Prev Return to chapter overview Next