Rss is not working in Google Chrome usin PHP MYSQL -
i have problem in code cant understand problem. problem code run on mozila firefox. when try execute on google chrome begin download file , not executed.
below code
<?php include_once'connect.php'; header ('content-type: application/xml: charset-iso-8859-1'); echo '<?xml version="1.0" encoding="iso-8859-1"?>'; ?> <rss version="2.0"> <channel> <title> pacra rss feed </title> <link> http://www.pacra.com </link> <description>pacra pakistan </description> <?php $query = "select og_ratings.client_id, og_ratings.press_release, og_ratings.dissemination_date, og_companies.name og_ratings left join og_companies on og_ratings.client_id = og_companies.id order dissemination_date desc limit 10"; $result = mysql_query ($query) or die ("could not execut query"); while($row=mysql_fetch_assoc($result)) { $cid = $row ['client_id']; $cname = $row ['name']; $pr = $row ['press_release']; $dd = $row ['dissemination_date']; ?> <item> <title> <?php echo $cname; ?></title> <description> <?php echo $cname; ?></description> <link><?php echo "http://localhost/upload/press_release".$pr; ?></link> </item> <?php } ?> </channel> </rss>
can me please?
this because chrome doesn't have inbuilt rss reader, have sue extension.
Comments
Post a Comment