alright =) and one more small thing. if i have this code
Code:
if($numpets >= 50){
$article_content .= "<div style='width: 100%; float:left; padding:5px;'><img src='http://media.giantbomb.com/media/bomb/img/achievements/trophy-bronze.png' title='Bronze Trophy'></div>";
} else if($numpets >= 200){
$article_content .= "<div style='width: 100%; float:left; padding:5px;'><img src='/images/silvertrophy.png' title='Silver Trophy'></div>";
} else if($numpets >= 500){
$article_content .= "<div style='width: 100%; float:left; padding:5px;'><img src='http://media.giantbomb.com/media/bomb/img/achievements/trophy-gold.png' title='Gold Trophy'></div>";
}
which isn't right b/c it isn't working. what i want to do is show a bronze tropy if the member has 60 or less pets
silver trophy if the have 200 or less
and gold if 500 or more
but the code i have either shows all the trophies or only if they have that exact amount =/
EDIT::
I was doing it backwards eh?
Code:
if($numpets >= 500){
$article_content .= "<div style='width: 100%; float:left; padding:5px;'><img src='/images/trophy-gold.png' title='Gold Trophy'></div>";
} else if($numpets <=50 && $numpets <= 200){
$article_content .= "<div style='width: 100%; float:left; padding:5px;'><img src='/images/silvertrophy.png' title='Silver Trophy'></div>";
} else if($numpets != 50){
$article_content .= "<div style='width: 100%; float:left; padding:5px;'><img src='/images/trophy-bronze.png' title='Bronze Trophy'></div>";
}else{
$article_content .= "";
}
no still not working correctly.
second EDIT::
i think this is correct...
Code:
if($numpets >= 500){
$article_content .= "<div style='width: 100%; float:left; padding:5px;'><img src='/images/trophy-gold.png' title='Gold Trophy'></div>";
} else if($numpets >= 200){
$article_content .= "<div style='width: 100%; float:left; padding:5px;'><img src='/images/silvertrophy.png' title='Silver Trophy'></div>";
} else if($numpets >= 50){
$article_content .= "<div style='width: 100%; float:left; padding:5px;'><img src='/images/trophy-bronze.png' title='Bronze Trophy'></div>";
}else{
$article_content .= "";
}