So what I am to understand about MyMWSQL is that it cannot write to a local database, only a remote. MWSQL is the opposite? But if we use SQLite, it will have somewhat of a different structure, or different syntax?
Right. So, basically, that will cause you all sorts of issues. Especially if MWSQL is ever used in a mod, which would complicate what you had to run.
A fix may be to add a command to MWSQL to trigger another app, which will then push the data to your server using POST. That app can also be triggered outside of the game.
So you would send:
xFileWrite "|pk_mwsql" "-upsave you.ess"
and MWSQL will start upload.exe with you.ess.
Next, upload.exe will read data from you.ess and send this data:
name=you&class=mage&whatnot
in the POST to the page http://fliggerty.com/upchar.php
which reads (at least, your code copy):
$mscon = mysql_connect(localhost, you, password);$msquery = "INSERT INTO characters (`name`, `class`) VALUES ('".$_POST['name']."', '".$_POST['class']."');";
My PHP is rusty, but that's the idea.