<?php ob_start(); $id=mysql_real_escape_string($_GET['id']); list($url)=mysql_fetch_array(mysql_query("select url from programlar where id='$id'")); header("location:$url"); exit; ob_end_flush(); ?>