Hi,
I use the script below to populate a HTML table and it works fine.
The only thing is, that the text in each cell is displayed by the
browser's default font. I would like to use a smaller font so that as many colums as possible are displayed without having to scroll horizontally. My question is:
how can I specify the font that displays the cell text?
thanks,
Denis
<html>
<head>
<title>Browse Books</title>
</head>
<body>
<h1><FONT SIZE="3">Titles</h1>
<?php
include_once "ez_sql.php";
#
$books=$db->get_results("SELECT b.title, a.firstname, a.lastname, publisher, datepublished, isbn,
bkshelfid FROM books b, authors a, haswritten h WHERE b.bookid = h.bkid AND a.authorid = h.authid");
echo "<table bgcolor=cccccc BORDER=1>
<tr>
<th><FONT SIZE=2 COLOR=000090>Title
<th><FONT SIZE=2 COLOR=000090>Author's<BR>Firstname
<th><FONT SIZE=2 COLOR=000090>Author's<BR>Surname
<th><FONT SIZE=2 COLOR=000090>Publisher
<th><FONT SIZE=2 COLOR=000090>Date<BR>Published
<th><FONT SIZE=2 COLOR=000090>ISBN
<th><FONT SIZE=2 COLOR=000090>Shelf<BR>Number\n";
foreach ($books as $book)
{
echo "<tr><td>" . $book->title;
echo "<td>" . $book->firstname;
echo "<td>" . $book->lastname;
echo "<td>" . $book->publisher;
echo "<td>" . $book->datepublished;
echo "<td>" . $book->isbn;
echo "<td>" . $book->bkshelfid;
echo "\n";
}
echo "</table>\n";
?>
</p>
</body>
</html>