I’m currently working on the tutorial “How to Use Flash with PHP and mySQL” and everything seen to be working fine. But my php script doesnt return the checklog value correctly to my flash page while the status value works fine. Here’s my php file.
$user=$_POST['username'];
$pass=$_POST['userpass'];
$username="";
$password="";
$database="";
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "SELECT * FROM userinput WHERE username = '$user' 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=No match, sorry!&checklog=2";
}
When i run a tace on checklog this is my value.
"
2"
can someone help me?
Nicolas 