PHP code devided by html code doesn't work -
this question has answer here:
- how enable php short tags? 16 answers
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
Post a Comment