If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
More Buttons  XML
Forum Index » Support Forum
Author Message
Anonymous



I'm rather new at PHP and having been trying to modify this line to work with four options.

if ($this->db->VARS["allow_age"]==1) {
$AGE= ($this->age==20) ? "&nbsp;<img src=\"img/20.gif\" width=\"12\" height=\"12\">" : "&nbsp;<img src=\"img/30.gif\" width=\"12\" height=\"12\">";
}

I want this to display a different image if the variable is 40 and 50. I have tried everything I can think of. Any help.

I need to change it in a second form too for the same thing.

if ($this->db->VARS["allow_age"]==1) {
$GENDER = ($row['age']==20) ? "&nbsp;<img src=\"img/20.gif\" width=\"12\" height=\"12\">" : "&nbsp;<img src=\"img/30.gif\" width=\"12\" height=\"12\">";
}

I woulld love some help/
Anonymous



that GENDER in the second line is supposed to be AGE
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum