Jump to content

[SOLVED] What is the best way to set up a table?


jakebur01

Recommended Posts

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.