+ 1
What's wrong in this code:
<html> <head> </head> <body> <script language="php"> <?php $x = 1; do{ $x++; } while($x<10); ?> </script> </body> </html>
2 ответов
+ 8
You didn't print anything within the loop, so there's no output. Also, if you are already enclosing your PHP code within <?php ?>, there is no need to declare the script tag.
+ 2
ok thanks!
actually i am a beginner in php...just started learning today...
thanks for your help:)