Hmm.......I'm no expert myself, but I think you could perhaps use the explode function. As I have nothing better to do at the moment while waiting for someone to answer my thread, I'll just make an example:
// I assume you are already connected to the database for this to work
$result = mysql_query("SELECT * FROM tablename") or die("Invalid query: " . mysql_error());
$words = 3; // Set this to how many words of the message you want to appear. In your example, it was 3.
// Loop through each row in the table. Will only happen once if that is how many rows there are.
while ($myrow = mysql_fetch_array($result))
{
echo $myrow['subject']; // will output "hello there"
$message_words = explode(" ", $myrow['message']); // Puts each word in message into an array
$i = 0;
while ($i < $words)
{
if ($i == 0)
{
$new message = $message_words[$i];
} else {
$new_message .= " " . $message_words[$i];
}
$i++;
}
echo $new_message; // Should output "im still noob"
}
I have not tested this, so sorry if it doesn't work.