|
-
Ok! Welcome everybody.
After a long period I am back into this discussion. Actually I’m decided to make this a m-book as hp3 gave me the suggestion to make it a mobile tutorial and also I had already in my mind to make it an useful guideline for novice to professional in the mobile area. But this will need more time and others’ help to make it success. It also needs more experiments on Flash Lite 1.1 area to make it on the pick level in the business, and I’m quite sure you will also stick with this little old 1.1 platform.
To me all the platforms are same. We do as per the market demand. Basically to me FL 1.1 is more focused and bigger area than the other FL .x platform, although we always do it in all the other versions. A small request to “Adobe Developer Group” to fix up some bugs on Flash Lite 1.1 and do improve the flexibility of player installation on device. May be it is a OS issue but it will be more better to have more memory heap on a device.
Let’s come back to the discussion. After the query we need to match the userName and Password with the database and return a value or string to flash.
This code which will do the thing:
if ($num == 1) {
if ($Password==$pass["Password"]) {
echo "&reason=Success&";
}else{
echo "&reason=Failure&";
}
}else{
echo "&reason=Please register&";
}
The Total Code:
<?PHP
$Name=$_POST[“userName”];
$Password= md5($_POST["Password"]);
mysql_connect ("localhost", "root", "");
mysql_select_db ("db01sep2009mob_app");
$query = "SELECT * FROM login WHERE userName = '$Name'";
$result = mysql_query($query);
$num = mysql_numrows($result);
$pass = mysql_fetch_array($result);
if ($num == 1) {
if ($Password==$pass["Password"]) {
echo "&reason=Success&";
}else{
echo "&reason=Failure&";
}
}else{
echo "&reason=Please register&";
}
?>
continue...
marlopax
Thursday, October 01, 2009
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|