1.12 kiriwrite_database_edit

kiriwrite_database_edit edits information about a database. If the confirm value is not given then it will write a form for editing a database. If a database filename (old or new) is blank or the database name is blank when the database is edited then an error is returned.

kiriwrite_database_edit will return data that is intended for kiriwrite_output_page.

Parameters:

kiriwrite_database_edit(filename, newfilename, newname, newdescription, newnotes, newcategories, confirm);

Usage:

$pagedata = kiriwrite_database_edit("database");
$pagedata = kiriwrite_database_edit("database", "newdatabase", "New Database Name", "New Database Description", "New Notes", "new, edited, database, categories", 1);

filename
Specifies the filename of the database to edit. This is required each time the subroutine is called.

newfilename
Specifies the new filename of the database. If the filename given is the same as the filename parameter then the filename does not change. This is required when the database is going to be edited.

newdescription
Specifies the new description of the database. This is required when the database is going to be edited.

newnotes
Specifies the new notes of the database. This is required when the database is going to be edited.

newcategories
Specifies the new categories of the database. This is required when the database is going to be edited.

confirm
Specifies if the action to edit a database should be confirmed by passing a '1'.