$id = $_GET['id']; if ($id == "puslapis") { SELECT * from table where laukelis = puslapis order by sudai echo "pradzia"; }