$username Posted July 9, 2007 Share Posted July 9, 2007 Hello Ladies and Gents, I have a new issue. I have a piece of code that throws my tables off. while($row = mysql_fetch_array($query)) { echo "<tr>"; echo("<td><a href=\"updateinfo.php?ID=" . $row["ID"] . "\" title=\"".$row["ID"]."\">" . $row["ID"] . "</a><td>"); echo "<td>".$row['FirstName']."</td>"; echo "<td>".$row['LastName']."</td>"; echo "<td>".$row['AddressStreet']."</td>"; echo "<td>".$row['AddressCity']."</td>"; echo "<td>".$row['AddressState']."</td>"; echo "<td>".$row['AddressZip']."</td>"; echo "<td>".$row['Paid']."</td>"; echo "<td>".$row['Amount']."</td>"; echo "<td>".$row['CaseNotes1']."</td>"; echo "<td>".$row['CaseNotes2']."</td>"; echo "<td>".$row['CaseNotes3']."</td>"; echo "<td>".$row['CaseNotes4']."</td>"; echo "<td>".$row['OtherInfo']."</td>"; echo "<td>".$row['ServBy']."</td>"; echo "<td>".$row['ClientName']."</td>"; echo "<td>".$row['County']."</td>"; echo "<td>".$row['ServDate']."</td>"; echo "</tr>"; } ?> When I take out the link generator on the second line, then my tables line up. When the 3 lines is in there is throws everything off. echo("<td><a href=\"updateinfo.php?ID=" . $row["ID"] . "\" title=\"".$row["ID"]."\">" . $row["ID"] . "</a><td>"); Here is a pic of what it looks like. When I don't have that code in there it looks like this. echo "<td>".$row['ID']."</td>"; Is there something I can do that would make the code work with in one table. Thanks, Brett Quote Link to comment Share on other sites More sharing options...
marcus Posted July 9, 2007 Share Posted July 9, 2007 You miss ended the table data cell. You ended it with <td>, not </td> Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted July 9, 2007 Share Posted July 9, 2007 Beat to it Your not closing the <td> Change: echo("<td><a href=\"updateinfo.php?ID=" . $row["ID"] . "\" title=\"".$row["ID"]."\">" . $row["ID"] . "</a><td>"); To: echo("<td><a href=\"updateinfo.php?ID=" . $row["ID"] . "\" title=\"".$row["ID"]."\">" . $row["ID"] . "</a></td>"); Quote Link to comment Share on other sites More sharing options...
$username Posted July 9, 2007 Author Share Posted July 9, 2007 Well you guys nailed that on the head. Thanks. Brett Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.