if(!strpos($a['LINK'],"http://")) { $ll = "http://".$a['LINK']; } else { $ll = $a['LINK']; }