news:
if all you want is to keep the line breaks and tabs, try this for size:
$news = ereg_replace ("\n", "<BR>", $news);
$news = ereg_replace ("\t", " ", $news);
selecting:
I would suggest you use mySQLs select to your advantage. This way you wont have to fetch the entire essay.
SELECT LEFT(text, INSTR('.',text));
this will get text, but until the first occurence of "."
You could be having problems with your split command:
this is how i did:
$summary[] = split ('[.?]', $row[articletext]);
This wont work for me, unless I write $row['articletext'] (ie. with "'"s). If it DOES work anyway, then try position 1 😉
BTW, if you are making an essay site, mail me.
jens