| Index
» Projekty
» phpMyEdit
» Fórum
» retrieve current record number |
 |
nikos
Založený: 23.09.2006
Príspevky: 2
Zaslal: 2006-09-23 19:38
Návrat hore
Odpovedať s citátom
|
Hi phpMyEdit fans,
How can I access the number of the
current recordset
in a table generated with phpMyEdit. The purpose is to open a subform for editing information in a child table that is linked to the selected record in my main table.
Any hints would be greatly appreciated!!!
Best Regards,
Nikos
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2006-09-24 15:07
Návrat hore
Odpovedať s citátom
|
in list mode or in view mode ?
in view it is $this->rec,
in list and view in $url variable 'something_rec' (afaik). try using with url_linking http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.url-linking.html
|
nikos
Založený: 23.09.2006
Príspevky: 2
Zaslal: 2006-09-24 16:33
Návrat hore
Odpovedať s citátom
|
Thank you for the tip! I tried the following to access the record...
<? echo "rec: ".$this->rec ; ?>
... and received:
Fatal error: Using $this when not in object context
...sorry for the silly questions, I am PHP newbee.
Maybe, I'll try it with url-linking instead. But how can I access the phpMyEdit.class object from my table script?
Any ideas?
Best Regards, Nikos
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|