Re: [phplib] Table Edit field problem From: Jesse Swensen (swensenj <email protected>)
Date: 03/29/01

If you are subclassing table for the add extra function you need to look at
the prototype or the virtual function table_row_add_extra. Passed to this
function is ($row, $row_key, $data, $class=""). This is the column name for
that row.

Now, if what you are referring to is what is the primary key in the database
for that row, that is another subject you will need to address yourself.
But this can be done if you know what the column names are in advance. Then
you just use $data to pull out the column values. You may try something
like edit.php?id=$data['key_column'] where you replace key_column with what
ever the name of your key column would be.

-- 
Jesse Swensen
swensenj <email protected>

> From: "Stefan Becker" <sb <email protected>> > Date: Tue, 27 Mar 2001 07:25:28 +0200 > To: "PHPLIB" <phplib <email protected>> > Subject: [phplib] Table Edit field problem > > Hey guys, > > i am having a little problem with the table class. i want to add an extra > cell at the end of each row and i follow the instructions given in the > manual, i overwrite table_heading_row_add_extra() and table_row_add_extra(). > Like in the manual described i use that in order to add an edit and delete > option to each record. but how the heck can i find out the ID for each row > so i can connect edit.php?id=$rowID with the right record? is there a little > trick because in the manual its said that is is so easy, but i cant figure > it out?! > Thanx for ur help. > Mit freundlichen Grüßen > Stefan Becker > Geschäftsleitung > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> > justseven - agentur für neue medien > > web: http://www.justseven.de > mail: sb <email protected> > mobil: 0173 6536670 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: phplib-unsubscribe <email protected> > For additional commands, e-mail: phplib-help <email protected> > >

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>