Hello all. I have a table generated every time a user performs a search on my database. I want to add some style to this table. Here is the code...
if ($myrow = mysql_fetch_array($result))
{
echo "<table border=2>\n";
echo "<tr><th>Trip Name</th><th>Region</th><th>Country</th><th>Description</th><th>Cost</th><th>Duration</th><th>Lodging</th><th>Grade</th>";
do{
printf("<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>\n", $myrow["trp_name"], $myrow["region"], $myrow["country"], $myrow["description"], $myrow["cost"], $myrow["duration"], $myrow["lodging"], $myrow[grade]);
}
while ($myrow=mysql_fetch_array($result));
echo "</table>\n";
}
else
{
echo "Sorry, no records were found.";
}
I would like to center certain fields, add a background color, bold the "trp_name", maybe give teh font a color. Anyone know how I can do that?