display last log date from mysql (php) to flash?
Anyone has experience to display the last log date from the mysql database to the flash?
i did it with the username - that was displaying but not the last_log_date ....
anyone can profide suggestion or an easier method/solution? sample script would be coolz. tnx
// in the control php
$username = $row["username"];
session_register('username');
$_SESSION['username'] = $username;
$last_log_date = $row["last_log_date"];
session_register('last_log_date');
$_SESSION['last_log_date'] = $last_log_date;
$send_msg= "login_true";
print"return_msg=$send_msg&id=$id&username=$username&id=$id&last_log_date=$last_log_date";
// in the session php
session_start();
if ($_POST['post_session']=="check_session") {
$id = $_SESSION['id'];
$username = $_SESSION['username'];
//$id = $_SESSION['id'];
//$last_log_date = $_SESSION['last_log_date'];
print "thissession_id=$id&username_name=$username&$id&lastlogin_date=$last_log_date";
exit();
i read the data in actionscript with username_name and then display the data into the textfield. this worked for the username only but not for the last log date.... hmmmz