Php critical error
-
Hello there, i need help with my code, in the tryit editor on w3shcools it works, but when i paste it on the php block on my website, the website shows me a critical error, can anyone help me with this?
<script> function myfunction() { if(1+1=2) { <?php $src= "myimg2.png"?> } else { <?php $src= "myimg.png"?> } }; </script> <img width="60" class="image2" src="<?php echo $src?>" />
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Php critical error’ is closed to new replies.