I have an image that sits on top of a table. They are touching and that is the way I want it. I use
<img src="Images/blacklinelogo4.gif" width="820" height="78"></div>
<table width="820" height="386" border="0" align="center" cellpadding="0" cellspacing="0">
to achieve this. In the event that there is text in the bulletin string, I want the image and the table to seperate and print the row of text. I then made this change
<img src="Images/blacklinelogo4.gif" width="820" height="78"></div>
<?php
$BulletinArray = file ("http://mysite.com/info/data/forecast/Important_Bulletin.txt");
if ($BulletinArray[0] != NULL)
{
for ($b = 0 ; $b < count($BulletinArray); $b++)
{
echo "<center><marquee WIDTH=820> $BulletinArray[$b] </marquee></center>";
}}
?>
<table width="820" height="386" border="0" align="center" cellpadding="0" cellspacing="0">
now this works, but when the Important_Bulletin.txt file is null, I get a blank line between the image and the table. How can I avoid this? Thanks.
Shayne