# PHP problem

**URL:** <https://forum.kirupa.com/t/php-problem/204983>\
**Category:** Uncategorized\
**Created:** [October 25, 2006, 3:56am UTC](https://forum.kirupa.com/t/php-problem/204983 "2006-10-25T03:56:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![silverneo188](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@silverneo188](https://forum.kirupa.com/u/silverneo188)\
**Post date:** [October 25, 2006, 3:56am UTC](https://forum.kirupa.com/t/php-problem/204983/1 "2006-10-25T03:56:37Z")

</div>

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](http://www.creativecow.net/articles/brimelow_lee/php_mysql/php_mysql_flash.html).)  
> I need help
