[edit] this prolly would go better in the other forum can a mod please move it to replace the thread that links to this in the PHP forum?
my cpde fpr a login isnt working right. if you enter the wrong login right off the bat it returns no user info
but if you enter the right username.(it returns the username) and then you enter the wrong user info it still returns the username…i cant figure out why :()
heres my PHP
<code>
<?php
echo “test”;
$hostname=“localhost”;
$username=“root”;
$password=“root”;
$dbname=“hbs”;
$usertable=“members”;
$yourfield = “DispName”;
mysql_connect($hostname,$username, $password);
mysql_select_db($dbname);
if($_POST[‘email’]){
$email = $_POST[‘email’];
}
else {
$email = ‘joranbeasley@gmail.com’;
}
$result = null;
$sql = ‘SELECT * FROM members
WHERE email = "’.$email.’"’;
$result = mysql_query($sql);
$numrows = mysql_num_rows($result);
echo $numrows;
while($row = mysql_fetch_array($result)){
$name = $row[‘DispName’];
echo "UserName: $name.
";
}
mysql_close();
?></code>
so if anyone can please take a look and tall me why its returning the username if i enter the wrong username into the flash AFTER entering the right username
do i need to clear some catche or something?
if you wanna see my AS code just ask