//if forum id = 88 if($f == "88") { //display this image $var = "<img src="someimage.jpg">"; } else { //do nothing }