superkazza
12-05-2011, 08:25 PM
I have made a flash chat application with php and mysql. I upload all the files and in the display box it just says undefined. I have checked for errors and there seems to be one in the php file and specifically. The first line here:
if ($_POST['requester'] == "chat_check") {
$status_line = "not_new";
$stored_id = $_POST['stored_id'];
$sql = mysql_query("SELECT id FROM chats ORDER BY id DESC LIMIT 1");
while($row = mysql_fetch_array($sql)) {
$latest_id = $row["id"];
}
now i think that it correlates to this line in AS3:
// ready the last_refresh_time variable for sending to PHP
variables_cc.requester = "chat_check";
i have no idea why it says undefined, any help is appreciated!
if ($_POST['requester'] == "chat_check") {
$status_line = "not_new";
$stored_id = $_POST['stored_id'];
$sql = mysql_query("SELECT id FROM chats ORDER BY id DESC LIMIT 1");
while($row = mysql_fetch_array($sql)) {
$latest_id = $row["id"];
}
now i think that it correlates to this line in AS3:
// ready the last_refresh_time variable for sending to PHP
variables_cc.requester = "chat_check";
i have no idea why it says undefined, any help is appreciated!