What is wrong with this simple line of PHP?
<pre><code>is_int($_GET['pid']) ? define(PRODUCT, $_GET['pid']) : die('Invalid Product Id');
</code></pre>

<p>even if the value of pid is an integer I still get the Invalid product id message. Why?</p>
