Skip to content
Advertisement

Parse error: syntax error within the If statement

So if I have been trying to create an If statement in my HTML PHP file where it should display as “N/A” if the 'Workshop_Contact'=="0".

I’ve tried some ways but seems like I couldn’t find the solution

Here is the line code:

JavaScript

Advertisement

Answer

Could use a ternary

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement