Output mySQL data as XML with PHP tutorial

I am getting a parse error on line 20:
$resultID = mysql_query($query, $linkID) or die(“Data not found.”);
echo $resultID[‘id’];
$xml_output = "<?xml version=“1.0”?>
";
$xml_output .= "<entries>
";

for($x = 0 ; $x < mysql_num_rows($resultID) ; $x++){
line 20-------> $row = mysql_fetch_assoc($resultID);
what did I do wrong?

Second what does the xml need to look like to make this tutorial to go?

Guy