0) { while ($res = mysql_fetch_array($result)) { $link = $res[0]; if (substr($res[0], 0, 7) != "http://") { $link = "http://" . $link; } } } header("Location: $link"); die(); ?>