0) { $result=mysqli_fetch_assoc($query); } else{ header("location:projects.php"); } }else{ $post=NULL; } ?>

Featured projects

    '; $fetchpicture = mysqli_fetch_array(mysqli_query($connection,"SELECT ImageName FROM ProjectGallery INNER JOIN Projects ON Projects.ProjectId=ProjectGallery.ProjectId WHERE ProjectGallery.ProjectId={$row['ProjectId']} LIMIT 1")); echo'

    '.$row['ProjectTitle'].'

    '. $p= substr($row['ProjectDescription'], 0, 138).'...'.'

    View Details
    '; } ?>

Get Energy Saving Tips

Subscribe to get our latest Energy tips

 

Stay in touch

TwitterTwitter FacebookFacebook  

Latest news


');{ echo '
'.ucwords(strtolower($row['PostTitle'])). '

'.ucwords(strtolower($row['PostTitle'])). '

'. $p= preg_replace("/]+\>/i", "",$q ).' [...]'.'

Read more
'; } ?>
with $pageTitle variable contents, and print the HTML echo str_replace ('', $pageTitle, $pageContents); ?>