prepare("SELECT * FROM service_tbl");
$home->execute();
$result=$home->get_result();
$index=1;
if($result->num_rows>0){
while($row_s=$result->fetch_assoc()){
?>
( |\s)*<\/p>/', '', $content);
// Find the position of the first paragraph break
$breakPosition = strpos($content, ""); // Look for first closing
tag // Extract the first paragraph only $first_paragraph = ($breakPosition !== false) ? substr($content, 0, $breakPosition + 4) : $content; $full_content = trim($content); // Escape content to prevent XSS $full_content = htmlspecialchars_decode($full_content); ?>