PHP code devided by html code doesn't work -


this question has answer here:

i'm not sure if issue wamp have been having issues php variables not being saved. here example:

works:

<?php   $x = "hellow wolrd!";  echo $x; ?> 

hellow wolrd!

doesn't work:

<?php   $x = "hellow wolrd!"; ?> <html> <body>  <?php echo $x;?> </body> </html> 

a blank page either generated because page extension not php or because of typing error in php code. try turning on error reporting on top of php file adding first lines:

<?php  error_reporting(e_all); ini_set('display_errors', 1); 

perhaps forgot simple semicolon or bracket somewhere. error reporting hint lines should check.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -