Flash, PHP, MySQL Integration Login/Register Tutorial

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
7,034
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 9, 2011

(Copied from old channel)

In this tutorial I will go through the process of creating a Flash interface for a user login/registration using PHP and MySQL integration.

(Reuploaded to fix quality)
Switch to the larger view for a clearer picture, the text is a bit fuzzy in the small view.

Requirements:
An intermediate understanding of the languages involved (Flash AS2/PHP/MySQL)
Web Server/Local Server with PHP & MySQL support.

Although this tutorial is done in AS2, it is very easy to convert it to AS3.

In this tutorial, I forgot to mention about crossdomain policy, it's very easy to do, you can find it with a google search.

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (BokoNOM)

  • just wanted to ask in the sendAndLoad, what if you're calling it from your desktop? or if you don't have a website? can i call it from my localhost or something? sorry for being such a noob at this :)

  • @nayt013 Considering PHP is a server-side language, it requires a webserver of some sort. You could use something like wamp which is what I personally use for local testing (Windows, Apache, MySQL, PHP), you can get it here completely free: wampserver[.]com/en

    If you're not sure how to set it up, you can find plenty of guides with a google search.

  • @nayt013 Considering PHP is a server-side language, it requires a webserver of some sort. You could use something like wamp which is what I personally use for local testing (Windows, Apache, MySQL, PHP), you can get it here completely free: wampserver[.]com/en

    If you're not sure how to set it up, you can find plenty of guides with a google search.

  • i've been trying to get this to work for days. IT DOESN'T WORK!

  • @DCjackass -Everything- you need is displayed in this video, it's as easy as it gets.

  • the thing is, when i preview register.php it says: &err=Registration failed.

    and login says: &user=&pass=&err=Login Successful.

    what does that mean?

  • @denzel99live How exactly are you trying to preview registerphp? Through a url? If you don't include a user/pass to register with of course it's going to throw an error by default. I can't give an example, youtube is fucking picky about urls in comments.

see all

All Comments (29)

Sign In or Sign Up now to post a comment!
  • Could you add a link to the source codes?

  • how did you make a web, i using 1 month still cant make it

  • can u provide the souce file....

  • Works perfectly, thanks for the help :D

  • @BokoNOM. Tell me why it doesn't work then? I did everything exactly the same way you did it in the video. Everything. But it just returns Login Failed every time.

  • @denzel99live Something is either wrong with your db connection, or the send/load for registering code or your PHP code for querying the db. You may also require a cross-domain policy.

  • it gets stuck at registering details...

  • @DCjackass PHP is a server side language, requiring a server. If you're using a local server then use localhost as the url.

  • @BokoNOM. But i'm confused as to why it needs to be a url to my site, and can't be just the files on my desktop.

  • @DCjackass Requires the full domain most likely.

  • Error opening URL 'data/register.php?pass=testpa­ss&user=testuser'

    It's giving me that error when i go to register. Only when i register though. I can't seem to find the issue.

  • @MrsFrozenCake It should be define("PASS", "");

    You missed a bracket, it's not hard just to go back to 1:45 and make sure you follow it correctly.

    No, I can't write the script in the description because #1: It would take me as much effort as it would for you to just copy it from the video. #2: I purposely make it difficult to copy the code (by you actually having to type it) so you learn, not copy entirely. I'd only spoon feed the code if I were being paid for it.

  • @ehermite0913 It's all in the video.

  • can you show me the script?

  • @blables1 Eg: If you have a statement like this:

    if(blah == blahblah){

    //do something

    } // <- this is the closing brace of the if statement

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more