Connecting Tech Pros Worldwide Forums | Help | Site Map

Create Table from Variable

juan_av
Guest
 
Posts: n/a
#1: Jul 17 '05
Hi,
I need to know, how I can to do to create a table in PHP, taking de
name for this table from a form variable.
Thanks

Andy Hassall
Guest
 
Posts: n/a
#2: Jul 17 '05

re: Create Table from Variable


On 18 Mar 2004 16:05:50 -0800, pca2003@mixmail.com (juan_av) wrote:
[color=blue]
>I need to know, how I can to do to create a table in PHP, taking de
>name for this table from a form variable.[/color]

What sort of table? HTML? Database? Dining? You probably want rec.woodworking
for the last one.

--
Andy Hassall <andy@andyh.co.uk> / Space: disk usage analysis tool
<http://www.andyh.co.uk> / <http://www.andyhsoftware.co.uk/space>
Perttu Pulkkinen
Guest
 
Posts: n/a
#3: Jul 17 '05

re: Create Table from Variable


"juan_av" <pca2003@mixmail.com> wrote:
[color=blue]
> Hi,
> I need to know, how I can to do to create a table in PHP, taking de
> name for this table from a form variable.[/color]

De dable you can create for example by progaramming a table class that has
handy interface, something like this:

$t = new myTable($_REQUEST['tablename']);
$t->setSummary('Products and prices');
$t->setHeaders('product','price');
$t->addRow('Spaceship','1000 usd');
$t->addRow('Submarine','2000 usd');
$t->output();



juan_av
Guest
 
Posts: n/a
#4: Jul 17 '05

re: Create Table from Variable


Andy Hassall <andy@andyh.co.uk> wrote in message news:<otek50p307q54e1rtks38e1o31v08jon3p@4ax.com>. ..[color=blue]
> On 18 Mar 2004 16:05:50 -0800, pca2003@mixmail.com (juan_av) wrote:
>[color=green]
> >I need to know, how I can to do to create a table in PHP, taking de
> >name for this table from a form variable.[/color]
>
> What sort of table? HTML? Database? Dining? You probably want rec.woodworking
> for the last one.[/color]

....A MySql Table
Thanks,
Closed Thread