FIrst of all, the answer could be here on theboards but I don't know what I should call this.
I made a search for our website. I would like the search query to look through my articles. But I only want to display the first 500 characters.
The following code would put everything into the variable beginning.
$nQuery = "select * from tbl_ArticlePages where or apContent like '%$Query%'";
$nResult = mysql_query($nQuery);
while($nRow = mysql_fetch_array($nResult))
{
$beginning[ = $nRow["apContent"];
}
The variable beginning should have the first 500 characters of the article in it.
How would I do this?
Any help would be appreciated.
Thank you