Two things need to be changed from how you had it.
When dropping the short tag with the equals sign, you have to add echo or print. Also, you need to grab your GET variables with $_GET[‘id’] instead of $id.
This should do what you want:
<?php echo (!empty($_GET['id']))?$_GET['id']:'none'; ?>
Save up to $96 at Dreamhost with ALMOST97 promo code (I get $1).
Or save $97 with THEFULL97.