Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 30. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  retrieve current record number

phpMyEdit Configuration     retrieve current record number
Odoslať novú tému   Odpovedať na tému    
 
nikos     Založený: 23.09.2006   Príspevky: 2  
Príspevok 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
Príspevok 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  
Príspevok 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    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov