# Flash Login using php and sql

**URL:** https://forum.kirupa.com/t/flash-login-using-php-and-sql/279802
**Category:** flash
**Created:** [January 19, 2009, 3:22pm UTC](https://forum.kirupa.com/t/flash-login-using-php-and-sql/279802 "2009-01-19T15:22:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Nicksws](https://avatars.discourse-cdn.com/v4/letter/n/f05b48/32.png) [@Nicksws](https://forum.kirupa.com/u/Nicksws)
#### Post date: [January 19, 2009, 3:22pm UTC](https://forum.kirupa.com/t/flash-login-using-php-and-sql/279802/1 "2009-01-19T15:22:01Z")

</div>

Hi,

I found the following tutorial which looks good but i cant get it to work  
[http://www.kirupa.com/developer/actionscript/authentication.htm](http://www.kirupa.com/developer/actionscript/authentication.htm)

i have setup the db connections etc and i never see the error screen or sucess screen, it just hangs at ‘Begin Login Process - Wait…’

setting up the db i had to remove the DEFAULT ‘0000’ as mysql qould not acsept it the code given is

```auto

[SIZE=3][COLOR=black][FONT=Verdana,Arial,Helvetica,sans-serif][COLOR=black][COLOR=#ad0000] CREATE TABLE auth (
  userid
    int(4)
    unsigned
    zerofill
    DEFAULT '0000'
    NOT NULL
    auto_increment,
  username varchar(20),
  userpassword varchar(20),
  PRIMARY KEY (userid)
);[/COLOR][/COLOR][/FONT][/COLOR][/SIZE]

```

[COLOR=black][FONT=Verdana,Arial,Helvetica,sans-serif][SIZE=1][COLOR=black][COLOR=#ad0000][/COLOR][/COLOR][/SIZE][/FONT][/COLOR]

[SIZE=2]Also the [/SIZE][SIZE=2][COLOR=black][FONT=Verdana,Arial,Helvetica,sans-serif][COLOR=black]usercheck.php file doesn’t load so i manually inserted a user into the db[/COLOR][/FONT][/COLOR][/SIZE].
