fsir But isn't that php code supposed to be closed
You don't have to close the
<?php tag at the very end of a PHP file if there is no non-PHP text to follow it. It's good practice to not have unnecessary closing tags as a habit, as they can mess things up when you start including/requiring a PHP file from another PHP script.
fsir i thought that might work but not yet...just a blank page.
Maybe add this to the beginning of the PHP:
...then find out what either I or you did wrong. 🙂
PS: I assume you actually have a PHP-enabled web server running locally and the PHP script is being accessed by a
http URL (not a
file:/// sort of reference) in your browser?