write()

Write form data to table. Without the WHERE statement data will be appended.

bool write( string handle, string table [, string where [, array values [, bool ignore = false ]]])

Return

TRUE if data has been successfully written to table.

Parameter
Description
handleHandle name to address form.
tableTable name to write values to.
whereSQL WHERE statement without the keyword WHERE.
valuesAdditional values, i.e. array("tablefield" => value).
ignoreIgnore alert and write anyway.

Write data to table.

$FORM->write("testform", "data_api_test")
RETURN: FALSE