Results 1 to 8 of 8

Thread: VB PHP MySQLQuestion

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2002
    Posts
    6

    Arrow VB PHP MySQLQuestion

    Hi,

    I am not sure how to do this so I am looing for some pointers please.

    I have an online MySQL database (linux server with no access via myodbc or ado) and I want to read data from this and import into a local access database.

    I am using vb as the client application with ado connections to the local access database.

    I need a way to get data from the MySQL database and import / delete / update into my local access database. I also need to upload data into the MySQL database.

    Is it possible to do this, without direct access to the MySQL server.

    My thought was to do the following.
    1) create php files on the server to load a page containing the data I want to download. (basically create a csv file)
    2) use the vb application to navigate to the php page (passing the variables in)
    3) somehow read the php csv page into an array
    4) do something with the array (update insert etc...)

    Has anyone else ever done this before or is there an easier way ?

    Any info will be much appreciated

    Thanks

    Tamath Altarak

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    If you get a copy of PHPMyAdmin
    It has a way to export query results to text files. The text files are sent directly to the local PC (I think), so the app wouldn't need to navigate to the web at all.
    This is real only good if it's just a one time thing. If it is something that needs tpo be done on a regular basis, you best bet may be to create a web page that displays the results in a table format, then use the INet control to OpenURL, from which you can read the HTML page and parse out the data from the table.

    Not sure if any of this helps.
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2002
    Posts
    6
    Thanks for the reply,

    PHPMyAdmin is a none starter as the data required is more than a one off.

    Your idea of inet control and parsing is confirming my idea of receiving csv type data.

    Have you ever done anything similar to this before ?

    Thanks

    Tamath Altarak

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    Nope. Can't say I have. Sorry.
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Does PHP have a library to turn a DB Query into XML? If so, you could use MSXML in your VB app to request the XML webpage and parse it into Access.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  6. #6

    Thread Starter
    New Member
    Join Date
    Aug 2002
    Posts
    6
    Hi,

    I'm not sure if it has a xml routine built into php. I can have a look and check.

    Thanks

  7. #7
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    PHP uses "expat" -- but unfortunatly it isn't part of the basic core PHP functionality. It's an add-on component that needs to be compiled into the version PHP running on the server.
    More on XML and PHP can be found here: http://www.php.net/manual/en/ref.xml.php
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  8. #8

    Thread Starter
    New Member
    Join Date
    Aug 2002
    Posts
    6
    thanks for the info.

    I'll have to check if my host has this addon or can add it on.

    Thanks again

    Tamath Altarak

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