Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

php xml help

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

php xml help

Postby wewewe14 » Sun Dec 09, 2012 7:22 am

hello, i want make xml.php file likes http://gosale.ge/xml.php with php xml
this is my code but it dont like this while($row = mysql_fetch_array($rs))
{

$id = $row['id'];
$name=$row['name'];
$image=$row['pic_dir'];
$text=$row['id'];
$time=$row['end_at'];
$price=$row['price'];
$percent= 100-(($row['price']*100)/$row['origin_price']);
$price=$row['price'];

$xml_output .= "<sale >\n";
$xml_output .= "<link>http://hopla.ge/comp...html</link>\n";
$xml_output .= "<title>$title</title>\n";
$xml_output .= "<image>2222</image>\n";
$xml_output .= "<text>$text</text>\n";
$xml_output .= "<price>$price</price>\n";
$xml_output .= "<percent>$percent</percent>\n";
$xml_output .= "</url>\n";

}

$xml_output .= "</deals>";

echo $xml_output;

can anybody help me?
wewewe14
New php-forum User
New php-forum User
 
Posts: 1
Joined: Sun Dec 09, 2012 7:17 am

Re: php xml help

Postby johnj » Tue Dec 11, 2012 5:25 am

johnj
php-forum Super User
php-forum Super User
 
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm


Return to PHP coding => General

Who is online

Users browsing this forum: Bing [Bot], Google Feedfetcher and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron