Results 1 to 2 of 2

Thread: [2005] getting data from a web MYSQL DB

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2005
    Posts
    257

    [2005] getting data from a web MYSQL DB

    I have a pretty general question. What would be the best approach that's reasonably secure and completely automated to get data in XML form from a MYSQL database on a web server? Right now my program requires them to on their own go to the website, sign in, and take a couple steps to download the correct XML file and then the program just has them browse for it and then it does its stuff with the file. The website owner and designer (who isn't me btw) has told me that's apparently too hard for the average user and they complain it's too complicated So he wants my program to automate most or all of the process and grab the XML file automatically. Right now it's a php script that generates the XML file then saves it to the server and provides them with a link to download it. The most automation I came up with given what I know how to do at the moment is load the correct website in a web browser control inside my program. Then I'd pass in a username or ID provided by them during installation onto the web address for the php file so it passes in with GET their username. Then it'd just simply show them a webpage with list of possible XML files of theirs to download or automatically link to the file itself if there's only one. I think that'd still get blocked by the automatic file download protection in IE7 cuz the web browser control is powered by IE, right? So that's one annoyance plus this still involves too many steps. Is there a better way to automate this or to query the database directly and download the XML file in the background assuming their firewall doesn't stop it?
    I tried to end process on Visual Studio 2005
    but PETA stopped me saying it's smart enough
    to be a living creature

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [2005] getting data from a web MYSQL DB

    You can call WebClient.DownloadFile or My.Computer.Network.DownloadFile. Each will accept a PHP URL and each allows you to provide credentials to log into the site.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width