Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [conditional-statements]

The tag has no usage guidance.

-1
votes
1answer
27 views

How to write a conditional check on a column value with a mysql query?

I am trying to setup a simple default statement on the results page of a testing system. This seems like it would be relatively simple, but I cannot get my if statement to process properly. The ...
0
votes
2answers
203 views

Why does strpos function in first condition always return true?

Something is wrong with my code. No matter what the $_SERVER['REQUEST_URI'] value is, gkPageContent is always displayed. if (strpos($_SERVER['REQUEST_URI'], "online") >= 0) { $left_col_class =...