You are here:  » How to include an ' include' in the products.php


How to include an ' include' in the products.php

Submitted by thepricesite on Tue, 2006-09-05 07:53 in

Hi all,
I'm really getting into this code now, can see lots of good ideas but best walk before running!

I have found a php page that will allow a customer to email the current page to a friend etc - the instructions are to add the below into the pages i want to email. Therefore does anyone have any ideas which line the below should go after? I tried it a couple of times in different positions but it didn't work.

<?php
 
include "tell.php"
?>

Thanks!

Michael

Submitted by support on Tue, 2006-09-05 08:08

Hi Michael,

You probably want to include it right at the end, just before the following line:

  require("html/footer.php");

You'll notice that all the pages in Price Tapestry first generate the data that is to be displayed; and then display that data by including the necessary HTML modules in the /html directory. It always starts with html/header.php and ends with html/footer.php; so any additional code that you wish to add must go somewhere between those two lines...

Cheers,
David.

Submitted by thepricesite on Tue, 2006-09-05 10:41

I added this right at the bottom and yes it worked - super job!

Michael @ ThePriceSite