I've modified SQL Client thus:
DECLARE DYNAMIC LIBRARY "libmysql64bit" (using the 64-bit QB)
and I still get the "Cannot file dynamic library" message. The .dll and the mysql_helper.h are both in the 64-bit folder for QB64 so I'm stuck.
One thing I noticed: you have DIM conn AS _OFFSET and conn is used throughout the code except right at the end:
'*** Close the db ***
mysql_close con
Shouldn't this be conn?
Ah, I didn't edit the wiki, then. That's not something I did but yes, it should be conn. That's why I like OPTION _EXPLICIT because it keeps issues like that from appearing. Also, try doing this:
DECLARE DYNAMIC LIBRARY ".\libmysql64bit"
The .\ tells it to look in the folder where your source is rather than the folder where the EXE is located. If that still doesn't work then try using the absolute path to the DLL