@ Kihaku:

Tried to test the mysql dll and it works. Sounds like you make little mistake with the MySQL server, router, firewall setup to accept outside connections. Not all webhosts allow you to connect from anywhere else then localhost.

Do your outside mysql database testing here --> Freesql.org

A lot of webhosts add a prefix to database names and usersnames, so then username becomes prefix_username. Remember if your behind a firewall and or router, you must allow access and port forward from there too.

Dusty

Code:
plugindir = ".";

//--------------------------------------------------------------------
// DLL-declarations
//--------------------------------------------------------------------
dllfunction mySQL_Connectdb(w,x,y,z); // declaration of a DLL function
dllfunction mySQL_Closedb();
dllfunction mySQL_ExecQuery(string);
dllfunction mySQL_GetVal(x,y);
dllfunction mySQL_GetStr(string,x,y);
dllfunction mySQL_RowNumber();
dllfunction mySQL_IsConnected();

string output_text = [255]; //max 255 chars

text combatskills_txt
{
pos_x = 20;
pos_y = 20;
string = output_text;
flags = visible;
}

function main()
{
// database,host,user,password
mySQL_Connectdb("dbname","www.freesql.org","dbuser","dbpass");
if(!mySQL_IsConnected())
{
beep;
exit;
}
str_cpy(output_text, "Connected!");
while(1)
{
wait(1);
}
}




smile