Forums

reference field in php fragment

broberts 17 Aug, 2008
In the body section I want to do something based on a field value. How do I reference one of the query fields in php?
Max_admin 17 Aug, 2008
Hi,

the current row can be accessed through $row variable, so you can check with something like : if($row->id == 1)do_something!

let me know how this works!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
broberts 17 Aug, 2008
works fine, thanks
This topic is locked and no more replies can be posted.