// Get private messages $query = "SELECT * FROM privatemessage ORDER BY privatemessageid"; $result = mysql_query($query); $number = mysql_numrows($result); $i = 0;