ok i have this at the top of the script:

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();

this at the bottom of the main function:

dll_open("A6mySQL.dll");
mySQL_Connectdb( "mytablename", "localhost", "myusername", "mypassword");

i have the two dll's in the directry my work is in and in the acknex_plugins folder.?? any ideas?