- Moderated by:
- Support Team
-
- rank:
-
Freshman
- registered:
- October 2003
- Status:
- offline
- last visit:
- 03.05.08
- Posts:
- 38
Hello,
I have the idea of simply adding the banner PHP+HTML into a HTML block. I have created a new block and put the following code in it. The table borders are there, but it doesn't display the banner. Being PHP-illiterate, I would appreciate if anybody can have a look to this simple code:
Code
<table bgcolor="#888888" cellpadding="0" cellspacing="1" border="0" >
<td>
<?php pnBannerDisplay(1); ?>
</td>
</table>
Thanks. -
- rank:
-
Professional
- registered:
- September 2003
- Status:
- offline
- last visit:
- 11.04.08
- Posts:
- 3055
You can't use an HTML block for that - use a PHP block... with a PHP block, it is giving you the opening/closing PHP brackets already, so if you want to mix HTML/PHP, it would go like:
Code
?>
<table bgcolor="#888888" cellpadding="0" cellspacing="1" border="0">
<td>
<?php pnBannerDisplay(1); ?>
</td>
</table>
<?php
Or, if you were doing only PHP in the block:
Code
pnBannerDisplay(1);
--
Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods
Cape Cod Travel Info...
