$sql = &quot;select * from user where username=&#x27;&quot;.$_COOKIE[&#x27;username&#x27;].&quot;&#x27;&quot;;<p>Came across this last year... have seen variations of it over the last 15+ years, but saw it in &#x27;new&#x27; code last summer.  :&#x2F;