Results 1 to 6 of 6

Thread: Login System - is it possible?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2008
    Posts
    13

    Login System - is it possible?

    Is it possible to connect to a my remote website's MySQL Database which holds a list of usernames and passwords, and if txtUsername.Text and txtPassword.Text matches the stored information, msgbox"Logged In" occurs?

    Of course I will be doing something other than the msgbox, I've seen some stuff here at vbForums with MySQL, but it's all been local side. How can I do this remotely?

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Login System - is it possible?

    same as you would locally, but you would need to supply the IP or dns name of the server where the database is located. Also the database would need to be accessable from the outside world (some ISPs don't allow outside access to the databases - it's a security issue).

    -tg
    * 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
    Jun 2008
    Posts
    13

    Re: Login System - is it possible?

    Well the code I've seen here AND on pscode (I've been searching for a bit), connects to the Database from so you can run queries. I don't need to connect, I rather really just need to quickly use a SELECT function so I can get information out of two tables - Username and Password, but I don't understand how to integrate Queries with VB6.

  4. #4
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Login System - is it possible?

    You need to connect in order to execute queries against it.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  5. #5

    Thread Starter
    New Member
    Join Date
    Jun 2008
    Posts
    13

    Re: Login System - is it possible?

    Right... but I don't know how to post the queries..

  6. #6
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Login System - is it possible?

    Thread moved to Database Development forum (the "VB6" forum is meant for questions which don't fit in more specific forums)

    You do it in exactly the same way as you would for a local database - the only thing that needs to change is the connection string, which needs to use the IP or dns name of the server (rather than something like "local"). There are examples of connection strings via the link in my signature.

    There are several examples of working with databases (including running queries, etc) in the "Classic VB - ADO" section of our Database Development FAQs/Tutorials (at the top of this forum), I'd recommend starting with Beacons ADO Tutorial.

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