PHP problem

I have written a PHP below in Dreamweaver(because im running on a mac and there is no other way for me to edit PHP)

<body>
<?PHP

$link = mysql_connect(“localhost”,“username”,“password”);
mysql_select_db(“mySQL database name”);

$query = ‘SELECT * FROM products’;
$results = mysql_query($query);

echo "<?xml version=“1.0”?>
</body>
</html>

(I have placed username and password in for obvious reasons)
But I am adding more code after

echo "<?xml version=“1.0”?>
but whenever I do, it converts what ever is after
echo "<?xml version=“1.0”?>
to regular text.( I am using the PHP code from this video http://www.creativecow.net/articles/brimelow_lee/php_mysql/php_mysql_flash.html.)
I need help