I am using this code bellow but the collums get messed up.
if ($myrow = mysql_fetch_array($result)) {
do {
echo "<table width=762 border=1 cellpadding=0 cellspacing=0>";
echo "<td width=18>$myrow[n_client] </td>";
echo "<td width=80>$myrow[nmclient] </td>";
echo "<td width=70>$myrow[contact] </td>";
echo "<td width=60>$myrow[phone1] </td>";
echo "<td width=60>$myrow[phone2] </td>";
echo "<td width=60>$myrow[fax] </td>";
echo "<td width=80>$myrow[email1] </td><tr>";
} while ($myrow = mysql_fetch_array($result));
echo "</table>\n";
} else {
echo "
<table border=0 bordercolor=1 cellspacing=0 = cellpadding=3>
<tr>
<td bgcolor=#CCCCFF><b>Nothing found</b></td>
</tr>
</table>";
I have tryed to put a space after the content, but it didn't work. I think it has to do when a field doesn't receive any data.
Does anyone have an experience with tables that could help me avoid this type of problem?