No conversations.
Create


"; } while($m_crow = mysqli_fetch_assoc($m_csel)) { $m_id = $m_crow['id']; $m_cuqid = $m_crow['uqid']; $m_last_active = $m_crow['last_active']; // What exactly are these conversations? $cv_sel = mysqli_query($conx, "SELECT name,picture,main_color,main_color FROM mail_convo WHERE uqid='$m_cuqid'"); while($cv_row = mysqli_fetch_assoc($cv_sel)) { $string = $cv_row['name']; $cv_pic = $cv_row['picture']; $cv_color = $cv_row['main_color']; // // DATA SAVER if($u_datasaver == 'on') { $cv_pic = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQAAAAA3bvkkAAAACklEQVR4AWNoAAAAggCBTBfX3wAAAABJRU5ErkJggg=="; } // DATA SAVER // include("../inc/replace.php"); echo "
\"\" $string "; echo timeago($m_last_active); echo "  
"; // 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 "
"; } } ?>