One thing is that my inbox messages are overflowing...
Example:

Not sure the code to make it stop at the line so it doesn't go over, but sure someone knows
Thanks!

Are you using divs is to display the message? If so, make the width of he div smaller.Epiales wrote:Heya all....long time no see. Been busy recently, and some health issues, but I'm back working on my game when I have the time and feel up to it.
One thing is that my inbox messages are overflowing...
Example:
Not sure the code to make it stop at the line so it doesn't go over, but sure someone knowsYAY...
Thanks!
Code: Select all
if(isset($_POST['readmessage'])) {
$bypass = 1;
$randid = $_POST['randid'];
$date = $_POST['date'];
$updatemessage = "UPDATE messages SET readm='0' WHERE pid='$users_username' AND date='$date' AND randid='$randid'";
$user_query = mysqli_query($db_conx, $updatemessage);
$messageinfo = "SELECT * FROM messages where pid='$users_username' AND date='$date' AND randid='$randid'";
$user_query1 = mysqli_query($db_conx, $messageinfo);
$messageinfo3=mysqli_fetch_array($user_query1);
$messageinfo3['message'] = nl2br(preg_replace('#(\\]{1})(\\s?)\\n#Usi', ']', stripslashes($messageinfo3['message'])));
echo "<b><font color='lime'>Subject: " . $messageinfo3['subject'] . "<br><br></b>From: " . $messageinfo3['sender'] . " " . $messageinfo3['date'] . "<br><br>";
echo " " . $messageinfo3['message'] . "<br><br><br>";
echo "<center><form method='post' action='messages.php?replyto=$messageinfo3[sender]&subcontent=$messageinfo3[subject]'><input type='submit' value='Reply'></center><input type='hidden' name='reply1' value='1'></form>";
echo "<br>";
echo "<center><form method='post' action='messages.php'><input type='submit' value='Delete'></center>
<input type='hidden' name='deletemessage' value='1'>
<input type='hidden' name='randid' value='$messageinfo3[randid]'>
<input type='hidden' name='date' value='$messageinfo3[date]'>
</form>";
echo "<center><form method='post' action='messages.php'><input type='submit' value='Back to Inbox'>
<input type='hidden' name='messages' value='1'>
</form>";
}