Doğrusu bu şekilde olmalı;

<?
$id == "";
if ($id == "") {
include "1.txt";
}
elseif ($id == "1") {
include "2.txt";
}
else print "Hata mesajı..";
?>