in reply to db to db update

i keep on getting the following error mesg: DBD::mysql::st execute failed: You have an error in your SQL syntax near 'NULL NULL NULL 'Login OK.

The query you're building has a syntax error in it. Figure out what the syntax error is, and fix it. That's pretty much all there is to it.

One problem I see is the way you're building up a string of bind markers in put_log(). You need commas between them, not spaces.

Hint: Depending on what RDBMS you're using (e.g., MySQL), prepare() won't catch syntax errors.