I've edit the script ... set db_handle [mysqlconnect -host localhost -user username -password mypass -db motd] proc raw:wf { f k t } { global db_handle set sql "INSERT INTO motd values ('','$t');" set result [mysqlexec $db_handle $sql] } it's correct ? This code work fine at 90% ... at som...
Dear gb , my problem is not mysql syntax (this isnt mysql forum) but how to add at this script , a possibility to store data into mysql db .
I've tryed many time but i'm not a good tcl programmer .