Okay, before I say anything else: I remember seeing this in
another thread and making a mental note (for possible future use). So I took a chance and gave it a whirl, hoping I could be of some assistance with your first request.
You can truncate the number of characters in your post using the
substr() function. Using Jenny's example, I added the part that trims the post length after the variables:
CODE
$title = stripslashes($row['title']);
$entry = stripslashes($row['entry']);
$password = $row['password'];
$id = $row['id'];
if (strlen($entry) > 90)
{
$entry = substr($entry,0,90);
$entry = "$entry... <br /><br /><a href=\"journal.php?id=" . $id . "\">read more</a>";
}
Basically, the code is saying if the string length of the entry is more than 90 characters, only display the first 90 characters, followed by "..." and a link to the single entry page.
Of course you can set whatever number you like (90 is pretty small) and format the link however you please.
In the post I linked to, there's an example of how to cut off after a certain number of words, but I haven't tried it.
I hope this helps! If it goes all wonky instead, I'm positive someone with more knowledge than I will chime in to help us out