Hello All,

I would like to use something like this in the tpl_product_info.php to dispaly different adds depending on click count. This works as a test page but when added to the product info I get a blank page. Im adding this to the bottom of the product info

Code:
$add1= "Read all about it. . . ";
$add2= "Read about something else";

session_start();
$_SESSION['var'] = isset($_SESSION['var']) && $_SESSION['var'] <= 5 ? ($_SESSION['var'] + 1) : 1;

if ($_SESSION['var'] == 1)
{
echo "$add1";
}

if ($_SESSION['var'] == 2)
{
echo "$add2";
}

and on and on . . .
When this didn't work I tried adding to the begining

Code:
require($_SERVER["DOCUMENT_ROOT"] . "/2008_TestSite/includes/configure.php");
$connection = mysql_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD) or die(mysql_error());
mysql_select_db(DB_DATABASE, $connection);
but still I get nothing.

Using version 1.3.8a Why won't this work?


Thank you,
John