I have some HTML content on a PHP echo command in a separate php file. The code is shown below..
<?php
echo "
<div id="footer">
<div id="footer-contact">
<p><strong>Gardencrafts Heswall Limited</strong> <br> The Nurseries, Lower Thingwall Lane, Thingwall, <br> Wirral CH61 1AZ</p>
<p><strong>Telephone :</strong> 0151 648 5840</p>
<p><strong>Fax :</strong> 0151 648 5840</p>
<p><strong>Email :</strong> gardencrafts1@gmail.com</p>
</div>
<div id="footer-icons">
<div id="social-tab">
<div id="twitter"><a href='https://twitter.com/GardencraftsUk' class='twitter-follow-button' data-show-count="false">Follow @GardencraftsUk</a></div>
<div class="fb-like" data-href='https://www.facebook.com/pages/Gardencrafts/200615766704712?fref=ts' data-send="false" data-layout="button_count" data-width="200" data-show-faces="false" data-font="trebuchet ms"></div>
</div>
<div id="awards">
<img src="images/f1.jpg">
<img src="images/f2.jpg">
<img src="images/f3.jpg">
</div>
<div id="copy">
<p>Copyright © 2011 Gardencrafts.</p>
</div>
</div>
</div>
";
?>
I included this in a php page with the following code.
<?php include("../script/footer.php"); ?>
The scrpit is in a folder called scrpit in the web site root.. but when I include this, the content is not showing! Can any one please help me!
Thank you.
You have syntax errors in your file. Add
\to escape the quotes or change them to single ones: