Code: Alles auswählen
if ($user_points >= 0 && $user_points < 9)
{
$pointsgif = '<img src="http://11f-online.gu2.info/artefakt/stern0.gif">';
}
else if ($user_points >= 10 && $user_points < 29)
{
$pointsgif = '<img src="http://11f-online.gu2.info/artefakt/stern1.gif">';
}
else if ($user_points >= 30 && $user_points < 49)
{
$pointsgif = '<img src="http://11f-online.gu2.info/artefakt/stern2.gif">';
}
else if ($user_points >= 50 && $user_points < 69)
{
$pointsgif = '<img src="http://11f-online.gu2.info/artefakt/stern3.gif">';
}
else if ($user_points >= 70 && $user_points < 98)
{
$pointsgif = '<img src="http://11f-online.gu2.info/artefakt/stern4.gif">';
}
else if ($user_points > 100)
{
$pointsgif = '<img src="http://11f-online.gu2.info/artefakt/stern5.gif">';
}
Gut, dann hab ichs laufen lassen und egal wie groß der inhalt der Varieablen $user_points ist, es wird stetig nur forlgendes bild ausgegeben:
Code: Alles auswählen
<img src="http://11f-online.gu2.info/artefakt/stern0.gif">