Hello i am using the following code to display a message if a variable is not equal to 1 or 2 if this is not equal it displays an error but if it is equal it does nothing. The code below shows the error never mind what the value is this isn't what i want.
Code:$display = 1; if ($display !== 1 || 2) { echo "error"; }
Submit Your Article
Forum Rules

Reply With Quote

