Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Triggers - Obtaining data displayed in report

phpMyEdit General     Triggers - Obtaining data displayed in report
Odoslať novú tému   Odpovedať na tému    
 
moi     Založený: 21.01.2005   Príspevky: 12  
Príspevok Zaslal: 2005-10-10 16:08
Návrat hore  Odpovedať s citátom     

Hi,

I am looking to obtain data that has been displayed in the record prior to a trigger script being run, but can only seem to locate the $this->rec value. If as part of the record a field of 'Name' had also been displayed, (but was not part of oldrecs/newrecs) is there anyway that I can obtain it as a variable without executing another SELECT statement on the record id?

Thanks,
Moi

 
michal     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2005-10-11 11:20
Návrat hore  Odpovedať s citátom     

prior to a before trigger ?

in before trigger, there is already $oldrec (which is obtained by a select from db).

 
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