Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I came across this line of code in 2

Status
Not open for further replies.

colep

Programmer
Jul 18, 2002
58
US
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&quot; . ($_GET[order] == &quot;prod_name&quot; ? &quot; DESC&quot; : &quot;&quot;) . '>

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 ;)
 
Thanks for the link! That cleared it up!!!!

Cole ;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top