# Login code wrong... I think... Help

**URL:** https://forum.kirupa.com/t/login-code-wrong-i-think-help/203629
**Category:** Uncategorized
**Created:** [October 12, 2006, 5:02pm UTC](https://forum.kirupa.com/t/login-code-wrong-i-think-help/203629 "2006-10-12T17:02:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jasonhardwick](https://avatars.discourse-cdn.com/v4/letter/j/c68b51/32.png) [@jasonhardwick](https://forum.kirupa.com/u/jasonhardwick)
#### Post date: [October 12, 2006, 5:02pm UTC](https://forum.kirupa.com/t/login-code-wrong-i-think-help/203629/1 "2006-10-12T17:02:28Z")

</div>

My Login will not work. I have my flash login page [here](http://www.expoships.com/test.zip) and my php code

```php
<?
 
$Email=$_POST['Email'];
$Pass=$_POST['Pass'];
 
if ($Email && $pass){
mysql_pconnect( 'XXXX', 'XXXX', 'XXXX' ) or die ("didn't connect to mysql");
mysql_select_db("XXXX") or die ("no database");
 
$query = "SELECT * FROM Invitation_Request WHERE username = '$Email' AND userpassword = '$Pass'";
$result = mysql_query( $query ) or die ("didn't query");
 
$num = mysql_num_rows( $result );
if ($num == 1){
print "status=You're in&checklog=1";
} else {
print "status=Sorry, but your user name and password did not match a user name/password combination in our database. Usernames and passwords are entered in from a different file. Thank you for visiting test login script!!&checklog=2";
}
}
 
?>

```

My login seems to stall every time …whats wrong?
