there is a big difference between..
<td width=\"75%\"><font size=\"2\" face=\"Tahoma\">
" .$row['lastname'] . ", " . $row['firstname'] . "</td>";
// and...
echo " .$row['lastname'] . ", " . $row['firstname'] . ";
// also i changed the above to... to avoid parce errors
echo $row['lastname'] . ", " . $row['firstname'] ;
if you look at the sample page now.. the code is
// Format Names into a nice tables
echo "<table width=\"25%\" border=\"1\" bordercolor=\"#FFFFFF\">";
$j = 0;
$rownum = 0;
$result = mysql_query($query);
if (($result = @ mysql_query ($query, $connection))){
while ($row = mysql_fetch_array($result)){
if($j == $rownum) {
echo "<tr>";
echo "<td width=\"30%\"><font size=\"2\" face=\"Tahoma\">";
$rownum += 2; //<------- REPLACE 2 WITH NUMBER OF RECORDS PER ROW
}
echo "<select name=\"" .$row['lastname'] . ", " . $row['firstname'] . "\">
<option>-----------</option>
<option name=\"$row['fire']\" >Fire Scene</option>
<option name=\"$row['drill']\" >Drill Scene</option>
<option name=\"$row['station']\" >Station</option>
</select> ";
echo $row['lastname'] . ", " . $row['firstname'] ;
}
++$j; // <---- Yes this is right See below
if($j == $rownum) {
echo "</td>";
echo "</tr>";
}
}
echo "</table>";
All a really want is to seperate the one big column into 2 or 3 shorter columns.. to keep page lenght down and so on..