Hello
Look at this post
http://shoutbox.menthix.net/showthread.php?tid=62...d=696175#pid696175
that connects to a Access database, to connect a mysql one you need to do two things.
to enable the use of mysql you will have to download the odbc connector
http://dev.mysql.com/downloads/connector/odbc/3.51.html
then change the db.Open line to
code:
db.Open("DRIVER={MySQL ODBC 3.51 Driver};SERVER=SERVERADDRESS;UID=USERNAME;PWD=PASSWORD;DATABASE=DATABASE;");
with that change you should be able to use the code in the linked post to connect to mysql : >
(Im assuming you meant Mysql, but you can apply this post to any database, you just need to the correct connector and connection string)