So when I take out the While loop it will post:
$message = "<b><u>Messages while you were offline:</u></b><br />";
Post with no problem. But with the while loop that will not post at all nether the content within the while loop... Any idea what would be causing this?
$finder = "SELECT * FROM `chatroommessage` WHERE `to`='".$char['username']."'";
$findOfflineMessages = mysql_query($finder);
if(mysql_num_rows($findOfflineMessages) > 1){
$message = "<b><u>Messages while you were offline:</u></b><br />";
while($findMsg = mysql_fetch_assoc($findOfflineMessages)){
$message .= $findMsg['message'];
}
$activeTime = time();
$query = mysql_query("INSERT INTO `chatroom` (`date`, `userlevel`, `username`, `to`, `message`) VALUES ('".$activeTime."', '4', 'PM', '".$char['username']."', '".$message."')");
}