jakebur01 Posted April 15, 2007 Share Posted April 15, 2007 Hey, I am using a while loop to retrieve some rows. I am having a hard time keeping my cells aligned right. echo "<table>"; while($myrow = mysql_fetch_array ($result)) { echo"<tr><td>"; echo$myrow["Dealer"]; echo"</td><td>"; echo$myrow["Address"]; echo"</td><td>"; echo$myrow["City"]; echo"</td><td>"; echo$myrow["State"]; echo"</td><td>"; echo$myrow["Zip"]; echo'</td>'; //echo"<td>"; //echo "Zip code <b>$key</b> is <b>$value</b> miles away from <b>97214</b>.<br />"; } echo "</table>"; What would be the correct way to do this? Link to comment https://forums.phpfreaks.com/topic/47111-solved-what-is-the-best-way-to-set-up-a-table/ Share on other sites More sharing options...
joquius Posted April 15, 2007 Share Posted April 15, 2007 well first you could close the row, but I think you're talking about a html problem no? Link to comment https://forums.phpfreaks.com/topic/47111-solved-what-is-the-best-way-to-set-up-a-table/#findComment-229722 Share on other sites More sharing options...
jakebur01 Posted April 15, 2007 Author Share Posted April 15, 2007 right, when the rows are echoed out onto the page they are much different. I want them all to be exactly aligned the same. Link to comment https://forums.phpfreaks.com/topic/47111-solved-what-is-the-best-way-to-set-up-a-table/#findComment-229726 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.