Chi Kien Uong
Geranienstraße 30
71034 Böblingen
Deutschland / Germany
|
If you are not registered or logged in, you may still use these forums but with limited features.
Show recent topics
|
|
|
Author |
Message |
04/12/2003 06:35:57
|
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) ? " <img src=\"img/20.gif\" width=\"12\" height=\"12\">" : " <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) ? " <img src=\"img/20.gif\" width=\"12\" height=\"12\">" : " <img src=\"img/30.gif\" width=\"12\" height=\"12\">";
}
I woulld love some help/
|
|
04/12/2003 06:37:30
|
Anonymous
|
that GENDER in the second line is supposed to be AGE
|
|
|
|
|
|
Based on the open source JForum
|