#javascript-code-01-sqlExec.js / js
// Insert the revision into the database sqlExec( // A ‘prepared’ SQL statement "INSERT INTO wiki VALUES(?,?,?,?);", [ document.title, // The title of the entry $(“#author”).val(), // The author value that the user provided $(“#text”).val(), // The text of the revision (new Date()).getTime() // The exact time of the revision ], // Reload the revision list, once the query is complete reload );
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.