I came across this line of code in one of the sites that I maintain (I didn't originally code it) and I was curious what exactly it does.
Here's the code:
<A HREF='$PHP_SELF?order=prod_name" . ($_GET[order] == "prod_name" ? " DESC" : ""
. '>
I'm not sure what the second question mark and the colon is supposed to do. Can anyone enlighten me on this??? I would greatly appreciate it!!
Thanks in advance,
Cole
Here's the code:
<A HREF='$PHP_SELF?order=prod_name" . ($_GET[order] == "prod_name" ? " DESC" : ""
I'm not sure what the second question mark and the colon is supposed to do. Can anyone enlighten me on this??? I would greatly appreciate it!!
Thanks in advance,
Cole