Jump to content

[SOLVED] script causing odd gap


aebstract

Recommended Posts

<?php

    $color1 = "#dddddd"; 
    $color2 = "#c0c0c0"; 
    $row_count = 0;
$parts .= "<table width=732 cellpadding=3><tr bgcolor=#b2b2b2 cellspacing=6><td width=10 align=center>L</td><td width=10 align=center><strong>R</td><td width=10 align=center></td><td width=10 align=center>LOC</td><td>Part Number</td><td>Description</td></tr><br />";


$result2 = mysql_query("SELECT * FROM parts WHERE MCHN='PH' ORDER BY LOC ASC") or DIE(mysql_error());
while($r2=mysql_fetch_array($result2)) 
{ 
$loc=$r2["LOC"];
$pn=$r2["PN"];
$desc=$r2["DESC"];

$row_color = ($row_count % 2) ? $color1 : $color2;

$parts .= "<tr cellspacing=6><td align=center>1</td><td align=center>2</td><td align=center>3</td><td align=center bgcolor=\"$row_color\">$loc</td><td bgcolor=\"$row_color\">$pn</td><td bgcolor=\"$row_color\">$desc</td></tr><br />";

$row_count++;
}

$parts .= "</table>";



$content .= "
<p><u>$plantloc</u> - Paw Harvester</p>
";



echo "$content";
echo "$parts";

?>

 

This script is causing a weird gap of blank space between $content & $parts and I don't see a reason for it to do so?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.