Hi, im new in php and just learning things. Im trying to make a system that makes my variable into image, but im not actualy sure how. I made 1 code but its not actualy works as i want. PHP: $online = "$row[online]"; if ("$row[online]" == "Yes") { echo "Image for Online"; } else { echo "Image for Offline"; } I wanted to make so, that i dont have to use $row['online'] cuz of " ' ' " If row= yes then person is Online if No then hes offline. but if i use $online or $row[online] nothing expires. What i actualy did wrong?