| ";
// Latest message in this conversation?
$msg_sel = mysqli_query($conx, "SELECT uid_from,message FROM mail WHERE uqid='$m_cuqid' ORDER BY id DESC LIMIT 1");
while($msg_row = mysqli_fetch_assoc($msg_sel)) {
$msg_from = $msg_row['uid_from'];
$string = trim(substr($msg_row['message'],0,30));
include("../inc/replace.php");
// Latest message is from...?
$u_sel = mysqli_query($conx, "SELECT username FROM accounts WHERE uid='$msg_from'");
while($u_row = mysqli_fetch_assoc($u_sel)) {
$msg_from = $u_row['username'];
if($msg_from == $u_username) {
$msg_from = "You";
}
}
echo "$msg_from: $string";
if(strlen($msg_row['message']) > 30) {
echo "..";
}
}
echo " |