I wrote a query and have it executing properly, but when the results are being displayed I receive the following values and all of the rest are blank (even though data exists and I believe that it is queried correctly)
These fields appear
Company
First_Name
Last_Name
Address1
Address2
City
State
While all of the other result sets are blank. I have tried everything I can think of .
Thank you for the help.
Greg
echo "<Table border=2>";
echo "<tr><th>Company</th><th>First_Name</th><th>Last_Name</th><th>Address1</th><th>Address2</th><th>City</th><th>State</th><th>ZipCode1</th><th>ZipCode2</th><th>Area</th><th>Local</th><th>Number</th><th></th><th>Ext</th><th>HC</th><th>HN</th><th>HU</th><th>Email</th><th>Web</tr></th>";
while ($row = mysql_fetch_array($sql_result)) {
$Company = $row["Company"];
$First_Name = $row["First_Name"];
$Last_Name = $row["Last_Name"];
$Address1 = $row["Address1"];
$Address2 = $row["Address2"];
$City = $row["City"];
$State = $row["State"];
$Zip_code = $row["ZipCode1"];
$Zip_Code2 = $row["ZipCode2"];
$WPareacode = $row["Area"];
$WPlocal = $row["Local"];
$WPunique = $row["Number"];
$Extension = $row["Ext"];
$HPareacode = $row["HC"];
$HPlocal = $row["HN"];
$HPunique = $row["HU"];
$Email_Address = $row["Email"];
$Webaddress = $row["Web"];
echo "<tr><td>$Company</td><td>$First_Name</td><td>$Last_Name</td><td>$Address1</td><td>$Address2</td><td>$City</td><td>$State</td><td>$Zip_code</td><td>$Zip_Code2</td><td>$WPareacode</td><td>$WPlocal</td><td>$WPunique</td><td>$Extension</td><td>$HPareacode</td><td>$HPlocal</td><td>$HPunique</td><td>$Email_Address<td align=right>$Webaddress</td></tr>";
}
Thanks
Greg