How to extract only first two paragraph form mysql?
while($row = mysql_fetch_assoc($result))
{
$about=$row["about"];
}
$start = strrpos($about, '<p>');
$end = strrpos($about, '</p>', $start);
$paragraph = substr($about,$start,$end-$start );
This code gives first only one paragraph. How to get first two paragraphs?
Please help