Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 5th, 2003, 10:01 PM
D·Hack D·Hack is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 8 D·Hack User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Get data from remote MySQL database

I'm writing a set of applications that run on multiple clients' PCs and need to access a remote (server-side) MySQL database.

Having an application running on the server and listening for connections is not an option.

Having direct connections from the apps to the database (such as with myODBC, myVBQL) is also not an option.

The only method I have worked out is to browse to a php webpage in a hidden webbrowser object, sending user/password for authentication...

Then if the user is verified, the webpage outputs the required data to hidden html form objects. The number of fields is variable so first it has to send the number of following objects...

Then the vb app reads this html code and strips out the data.

HELP! This is horribly messy and inefficient, but I can't think of any other way to get it to work given those 2 limitations. Coding everything as php/webpages would be even worse and almost certainly wouldn't work anyway.

How else can I do this? Thanks!

Reply With Quote
  #2  
Old December 7th, 2003, 05:11 PM
Emmanuel Emmanuel is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 4 Emmanuel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi,


Well. Not easy to use a non naturel way... Even if the number of the fields returned are not the same, if the data response is structured (See if there is a common format for the part of mysql data written in the web page...) use MSHTML as a new reference belonging to your vb project (Microsoft HTML Object library).

Then use your resulting web page as a simple HTML document object with this HTML interface for VB = each part of the information in HTML tags are viewed and used as objects in different type of lists. For example you can update properties values of a HTML array cell, get the third URL in the page...etc.

Reply With Quote
  #3  
Old December 7th, 2003, 07:07 PM
Fin's Avatar
Fin Fin is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Wiltshire UK
Posts: 70 Fin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 47 m 14 sec
Reputation Power: 5
What is it your trying to achive. I'm not sure?

You want to use MySQL but you cant runn anything on your server?

MySQL by itsvery nature is designed to be 'server-side' that is why it's called an SQL server. If you can't connect to it, you can't connect to it.

Why can't you use MyODBC Etc. understanding the reasoning my help find a solution.

If it's your server you could build a socket server to act as go between, or move the default socket if it is in conflict.

If I can understand more i may be able to help.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Get data from remote MySQL database


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT