I suppose that you have forgotten to let the filename end with .php
.
So everything between the <(?php)
and the (?)>
is interpreted as a html tag and not visible. See your raw html output, then you may notice what’s going on.
1
solved Php Newbie, echo not working?