W3C home > Mailing lists > Public > www-html@w3.org > June 2001

Re: dynamic tables

From: Darren Ferguson <darren@crystalballinc.com>
Date: Thu, 14 Jun 2001 10:34:10 -0400 (EDT)
To: John Fulton <jfulton@nbcs.rutgers.edu>
cc: govind nalam <g_nalam@rediffmail.com>, "www-html@w3.org" <www-html@w3.org>
Message-ID: <Pine.LNX.4.10.10106141030030.4951-100000@thread.crystalballinc.com>
PHP is one option but to create anything dynamically there are a number of
options out there. Even ASP would work in both netscape and IE because it
is server side and it returns the HTML document to the web browser.

Other Options apart from PHP include CGI using perl or other compatible
langauge, ASP from Microsoft, if running unix box install AOLserver and
run TCL interface to it using ARS digita templating system. This allows
very dynamic pages to be created and the system can be easily backended to
most databases.

I am not disagreeing with John in any way his solution is just as good as
any i have suggested. Mine are here just to compliment his and offer other
solutions

Thanks

Darren Ferguson

On Thu, 14 Jun 2001, John Fulton wrote:

> 
> Look into PHP.  It runs on the server-side so it does not 
> matter if your users have netscape or some other browser.  
> 
> Here is a quick example:
> 
> <html>
> <hr><h2>A Dynamic Table</h2>
> <table border=5 width="600">
> <?
> $one = "something";
> $two = "something else";
> $three = "the other thing";
> for ($i = 0; $i < 40; $i++) {
>    echo "<tr><th colspan=2 bgcolor=#00DDDD>$one</th></tr>";
> 
>    echo "<tr><td bgcolor=#999999>$two</td><td bgcolor=#DDDDDD>
>                 $three</td></tr>";
> }
> ?>
> </table>
> </html> 
> 
> In the above the variables $one, $two, & $three, are supposed to
> show dynamic content.  I imagine that you would be getting them 
> from some data-structure if this were a real application.  
> 
> You have to have PHP installed on your webserver for the above to
> work.  You would save the above code in a file called 'whatever.php'.  
> 
>   John
> 
>                                                              
> 
> On 14 Jun 2001, govind nalam wrote:
> 
> > Hi,
> >   Is it possible to create Tables dynamically, and it should work in both netscape(4.7) and IE.
> > Please let me know the details.
> > Thank U.
> > 
> > regards
> > g nalam
> > 
> > 
> > 
> > _____________________________________________________
> > Chat with your friends as soon as they come online. Get Rediff Bol at
> > http://bol.rediff.com
> > 
> > 
> > 
> > 
> > 
> 
Received on Thursday, 14 June 2001 10:37:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:48 GMT