Database to Web
William Park
parkw at better.net
Fri Jan 14 14:23:39 EST 2000
On Fri, Jan 14, 2000 at 07:04:52PM +0000, Simon Faulkner wrote:
> Has anyone got a good sugestion for the easiest way to display the
> results of an sql query on a web page?
It's very difficult to generalize, because each case is different. For
the code you quoted, do you want a nicer table? If so, why couldn't you
put some <td> tags?
> This works but it's not pretty!
<cut>...</cut>
> print "<table border cellspacing=0 cellpadding=5>"
> for record in range(total):
> Name = tuple[record]
> print "<tr>"
> print Name
> print "</tr>"
> print "</table>"
More information about the Python-list
mailing list