I am pretty new at php coding and have been going on trying to learn from the book, "PHP and MySQL for Web Development." I, so far have installed PHP on my machine and am running it through Apache and have it configured for development on the localhost. So far the example that I have tried:
Code: Select all
<?php
echo ('<p>hello</p>');
echo date('H:i, jS F');
?>hello
"); echo date('H:i, jS F'); ?>
which by no means can be correct (i.e. the extraneous ' ") echo date('H:i, jS F'); ?> '
which should only read
hello [the date]
Am I missing something?
Any suggestions and help would be duly appreciated,
Thanks