SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Nov 2012
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Retrieve data in the database

    Hello All, I have build an email form in Flash login/registration area.

    What i am trying to do is when a user login to their email and password and have successfully registered, with their login details email, Password etc. How can i get their informatiom (=data) from MySQL database
    to check a user's login/pass against a DB.
    Thanks

  2. #2
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,506
    Mentioned
    163 Post(s)
    Tagged
    4 Thread(s)
    Do you need help with the query? Or are you asking how to connect to the database from flash?

  3. #3
    SitePoint Member
    Join Date
    Nov 2012
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you Guido for your response. It's the latter! Forgive the simplicity of my question, but I'm a complete beginner at this. When a user logs in how can Flash or the Database check the users information?
    Thank You

  4. #4
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,506
    Mentioned
    163 Post(s)
    Tagged
    4 Thread(s)
    Flash (which runs client side) can't directly interact with the database (server side).
    In your flash script you'll have to call a server side script (PHP?) passing it the variables it needs. The PHP script will do all the database accessing, reading, writing, etc, and then send the result back to the flash script.

    You'd use URLLoader and URLRequest for that:
    http://help.adobe.com/en_US/FlashPla...RLRequest.html


    A thread that might interest you: http://www.sitepoint.com/forums/show...ween-variables
    Last edited by guido2004; Jan 28, 2013 at 13:37. Reason: typo

  5. #5
    SitePoint Member
    Join Date
    Nov 2012
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank You for the links Guido. You been a great help. I now understand more clearly what i need to do.


Bookmarks

Posting Permissions

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