PDA

View Full Version : [VB.NET] MySQL



blazes
April 14th, 2007, 03:44 PM
I'm learning VB.NET and am wanting to make a small application that requires a connection to a mysql database. I've stuff I can download and install to make this work, however, I want to be able to distribute it, and so can't go this route. Is there any other way to be able to do this?

Templarian
April 14th, 2007, 04:00 PM
Connect it with a PHP page. For me I work with an XML and PHP when asking for data online. Just make a .php page that reads the db and outputs a formatted file to be read by the program.

When calling for a file call with get for the page http://www.d.com/d.php?x=dd hope that helps give you and idea, because yea your not gonna want to put the user and pass for the mysql in the project.

blazes
April 14th, 2007, 04:08 PM
Sweet. Thanks. I thought about that but I was sure how it would work out.

Templarian
April 14th, 2007, 11:26 PM
Yea. You will find that you will want to learn threads for accessing files online. See your project will actually pause while its connecting to get the file (which can some times be annoying if its a larger download).

For me, my front welcome page is actually online so downloading the menu (drop down options) and tiles ect are done with other threads to make things as smooth as possible.

Just an idea if your experiencing an annoying enough lag.