I am using php to produce a table to present data from a mysql database. one column is text and the rest are numbers from 1-9. my problem is that the text column is large and affects the height of the other columns. I have tried to adjust the height and width using standard commands, eg.
<td height ='15'> or width... with both single and double qoutes and it does not work. here is the code any ideas?
mysql_select_db("books");
$query = "select * from pgy1 where ".$searchtype." like '%".$searchterm."%'";
$result = mysql_query($query);
if ($result){
echo"<table border=1>";
print"<tr><td><b><font face='Arial' size='2'>Attending</font></b></td>
<td><b><font face='Arial' size='2'>Resident</font></b></td>
<td><b><font face='Arial' size='1'>History</font></b></td>
<td><b><font face='Arial' size='1'>Physical</font></b></td>
<td><b><font face='Arial' size='1'>Knowledge</font></b></td>
<td><b><font face='Arial' size='1'>Differential</font></b></td>
<td><b><font face='Arial' size='1'>Ancillary</font></b></td>
<td><b><font face='Arial' size='1'>Formulation</font></b></td>
<td><b><font face='Arial' size='1'>Documentation</font></b></td>
<td><b><font face='Arial' size='1'>Technical</font></b></td>
<td><b><font face='Arial' size='1'>Motivation</font></b></td>
<td><b><font face='Arial' size='1'>Dependablity</font></b></td>
<td><b><font face='Arial' size='1'>Criticisms</font></b></td>
<td><b><font face='Arial' size='1'>Professionalism</font></b></td>
<td><b><font face='Arial' size='1'>Attitude</font></b></td>
<td><b><font face='Arial' size='1'>Wound</font></b></td>
<td width='200' height = '5'><b><font face='Arial' size='1'>Comments</font></b></td>
</tr>";
$numOfRows = mysql_num_rows ($result);
for ($i = 0; $i < $numOfRows; $i++){
$attn = mysql_result ($result, $i, "attending");
$res = mysql_result ($result, $i, "resident");
$his = mysql_result ($result, $i, "history");
$phy = mysql_result ($result, $i, "physical");
$kno = mysql_result ($result, $i, "knowledge");
$dif = mysql_result ($result, $i, "differential");
$anc = mysql_result ($result, $i, "ancillary");
$for = mysql_result ($result, $i, "formulation");
$doc = mysql_result ($result, $i, "documentation");
$tec = mysql_result ($result, $i, "technical");
$mot = mysql_result ($result, $i, "motivation");
$dep = mysql_result ($result, $i, "dependablity");
$cri = mysql_result ($result, $i, "criticisms");
$pro = mysql_result ($result, $i, "professionalism");
$att = mysql_result ($result, $i, "attitude");
$wou = mysql_result ($result, $i, "wound");
$com = mysql_result ($result, $i, "comments");
print"
<tr><td><font face='Arial' size='2'>$attn</font></td>
<td><font face='Arial' size='2'>$res</font></td>
<td><center>$his</center></td>
<td><center>$phy</center></td>
<td><center>$kno</center></td>
<td><center>$dif</center></td>
<td><center>$anc</center></td>
<td><center>$for</center></td>
<td><center>$doc</center></td>
<td><center>$tec</center></td>
<td><center>$mot</center></td>
<td><center>$dep</center></td>
<td><center>$cri</center></td>
<td><center>$pro</center></td>
<td><center>$att</center></td>
<td><center>$wou</center></td>
<td width = '200' height = '5'><font face='Arial' size='1'>$com</font></td></tr>";
}
print"</table>";
}
else{
print mysql_errno().": ".mysql_error()."<BR>";
}
mysql_close ();
?>
thanks
Pat