News:

Wondering if this will always be free?  See why free is better.

Main Menu

Embed php code in <table> tags

Started by sanax, July 02, 2009, 04:36:08 PM

Previous topic - Next topic

sanax

I'd like to embed the following .php code inside <table> tags... but I can't get to work in the index_template.php

<?
include_once("adverts.php");
echo "<div align='center'>$bannerAd</div>";
?>


It's a banner rotate code...

sanax

Quote from: Arantor on July 02, 2009, 06:49:16 PM
Where do you want to put it?

I added a html table with 4 colomns just below the heading inside the index_template.php ... I thought to add 4 rotaing banners within the table... but it seems to clash with the rest of the coding!

sanax

..any idea on how I should change the code as posted in my first post?

Orstio

If short_open_tags is turned off, you'll need a real PHP opening tag:

<?php include_once("adverts.php"); echo "<div align='center'>$bannerAd</div>";?>

Orstio

I remember PHP being recursive inside echo.  I just checked, and it definitely is not in PHP 5.  :-\

Advertisement: