我正在使用Flash AS3、PHP和MySQL。
什么是以下两者的区别:
$username = $_POST[ username ];
$password = md5( $_POST[ password ]);
和
$username = mysql_real_escape_string( $_POST[ username ]);
$password = mysql_real_escape_string(md5( $_POST[ password ]));
I am sending 和 retrieving variables from flash AS3 to php 和 back to AS3 again. The former one (without mysql_real_escape_string) works fine. But the later one gets an error in flash. The error message is: "Parameter text must be non-null."
我尝试用“echo”(显示)来显示两个结果,结果是相同的。非常奇怪。有没有人有任何想法?