CODE FOLLOWS YOUR PHP Example

Mahmoud's Query Demo via GET

Note this DEMO passes a variable (and its value) via a GET ternary operation. In other words, the name of the variable and its value is being passed through the URL. There is no form involved.

Please note the string "?id=1" in the URL.

ID = 1

DECREASE ID     INCREASE ID