You should try this:
$id_z_url = $_GET['gildia'];
With the name of the params, in your case gildia
.
When you want to use $id_z_url = $_GET['id'];
than you need to set the name id
in the url like this: http://szymciog.pl/stefan/gildia.php?id=1