Skip to content
Advertisement

php echo statement fails to execute

I am trying display data from mysql database from within an echo statement, but it crashes the webpage. I have tried many different ways to do the same, but it still fails every time here is the code.

JavaScript

Look at the line where I say “this is the offending line.” As soon as I remove that line, everything works fine as it should.

Advertisement

Answer

Separate the if statement from the string

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