0) { $tid = mysql_result($res,0,"id"); $title = mysql_result($res,0,"title"); $title2 = strip_title($title); $z = 1; } } mysql_close(); header("Location: view/$tid/$title2");