+ 1
How is this wrong?
Forget imports and include. Those third party files are all correct. The problem is that my code in index.php from line 17 and beyond. No matter what the outcome, only the else works. Why is this happening? https://code.sololearn.com/WOJHzCh2h82O/?ref=app https://code.sololearn.com/WJVDOL0ct0po/?ref=app
3 Antworten
0
Well, I'm not too sure here, but how about printing <resultado> on screen (in console, or alert() it) and see whether it contains something you expected ...
0
How do I do that?
0
Add either
console.log(resultado);
Or
alert(resultado);
Just before you check it in the following line in <script>
if(resultado == 0)