This question already has an answer here:
- The 3 different equals 8 answers
your if is not correct. You must use ==, not = to check if somethng equals in PHP.
Answer author Ondrej-vrabel
Tickanswer.com is providing the only single recommended solution of the question PHP echo with if not working [duplicate] under the categories i.e php , html , . Our team of experts filter the best solution for you.