Hi there,

I am working an a banner ad program on the shopping cart site.
This ecommerce site is based on php/mysql. All the pages, including the home page are driven by template. All these templates are stored in a mysql table.

I am customising 3rd party banner ads scripts. They are working fine when they were placed in an individual php test page.

But, when I have placed the same tag in my home page, it shows nothing and no error messages at all. Also I have created a test template in the database and tried pasting the same code it doesn't work. The test template creted is as follows.

http://www.sitename.com/onlineshop/index.php?action=test

it worked when the URL is

http://www.sitename.com/onlineshop/test.php


<?
require('path/to/banners/ad_class.php');
echo $pla_class->adcode( );
?>

I have even tried with

<?php include("banner.php");?>


But it did not worked. Can you please help me in this regard please.

Many thanks,

    Write a Reply...