Thank you for your replys...unfortunately, they didn't quite solve my problem, but I found a way around it...not necessarily the most elegant coding but it does the trick. I wanted a true "blank" table cell, not one where my variables or display would equal NULL.
Here it is -- hope it helps anyone else in a similar jam. Any thoughts or ways to make it more streamlined are, as always appreciated. I will be replacing all the jumps in and out of PHP with PRINT statements.
<!-- BEGIN DISPLAY TABLE -->
<table border="0" align="center" width=500>
<?
$sql= "SELECT info FROM cars LIMIT $StartRow, 20";
$result = @($sql,$connection) or die ("Couldn't select database. $sql");
if (!$result) {
$message = "Nothing in stock.";
$errorset = "1";
} else {
if (mysql_num_rows($result) > 0) {
$i = 0;
while ($row = mysql_fetch_array($result, 1)) {
$info = $row["info"];
if ($i == 0) {
?>
<tr><td width=100 height=100 align="center" align="center">
<? echo $info ?></td>
<?
}
if ($i != 4 && $i != 0) {
?>
td width=100 height=100 align="center" valign="center"><? echo $info ?></td>
<?
}
if ($i == 4) {
?>
td width=100 height=100 align="center" valign="center"><? echo $info ?></td></tr>
<?
}
if ($i == 4) {
$i=0;
} else {
$i++;
}
} //CLOSE WHILE
} // CLOSE IF
} // CLOSE ELSE
// ALL ROWS OF RETREIVED DATA USED..CREATE BLANK CELLS
while ($i <= 4 && $i != 0) { // BEGIN WHILE2
if ($i == 4) {
print "<td width=100 height=100> </td></tr>";
$i++;
}
if ($i <= 4) {
print "<td width=100 height=100> </td>\n";
$i++;
}
} // END WHILE2
if ($errorset == "1") {
print "<tr><td>$message</td></tr>";
print "<tr><td><img src=\"images/spacer.gif\" width=\"500\" height=\"8\"></td></tr>";
} else {
print "<tr><td colspan=5><img src=\"images/spacer.gif\" width=\"500\" height=\"8\"></td></tr>";
}
?>
</table>
<!-- END DISPLAY TABLE -->