Hello!
now i’ve got this code
<?php
header(“Content-type: text/xml”);
$host = “localhost”;
$user = “albertart”;
$pass = “aLb44TA”;
$database = “albert-artgallery_com_-_shop”;
$linkID = mysql_connect($host, $user, $pass) or die(“Could not connect to host.”);
mysql_select_db($database, $linkID) or die(“Could not find database.”);
$query = “SELECT * FROM product ORDER BY name DESC”;
$resultID = mysql_query($query, $linkID) or die(“Data not found.”);
$xml_output = "<?xml version=“1.0” encoding=“UTF-8”?>
";
$xml_output .= "<photoalbum>
";
$xml_output .= " <parameters noofcolumn=“6” noofrow=“1” thumbxs=“40” thumbys=“550” thumbwidth=“120” thumbheight=“113”/>
";
$xml_output .= " <album albumname=“album1”>
";
$xml_output .= " <images>
“;
for($x = 0 ; $x < mysql_num_rows($resultID) ; $x++){
$row = mysql_fetch_assoc($resultID);
$xml_output .= " <name=” . $row[‘picturet’] . "/>
";
}
$xml_output .= " </images>
";
$xml_output .= " </album>
";
$xml_output .= “</photoalbum>”;
echo $xml_output;
?>
by xml_output.=" <name=". $row[‘picturet’] . "/>
;
he gives a fold. i want it to be this in xml
<name=“1 1-2-3.jpg”/>