Simple Javascript to write to mysql

This is more of a braindump/code dump for me. Original source

Note: If you are going to use PHP values in this script please make sure they are set first…

Note2: I know javascript isn’t writing directly to mysql, this is my preferred method. function.php does the actual writing to mysql.. (uses update function - if you are reading this I expect you already know how to write a simply mysql update/insert statement and execute it inside of php..

Example.html

[javascript] [/javascript]

[html] <div id="avatarsavediv"></div> [/html]

Final note: The above shows the output

Reblog this post [with Zemanta]