View Full Version : Xml in php

03-30-2007, 09:43 PM
Hi there,

Is there any way to insert xml in php, and make xml titles variables?


03-30-2007, 10:02 PM

03-31-2007, 01:12 AM

Here is what i have...

header("Content-type: text/xml");
echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>";

mysql_connect("localhost", "username", "password") or die(mysql_error());
mysql_select_db("database") or die(mysql_error());

echo '<rss version="2.0">';

echo '<channel>
<title>Allsortgroup Blog</title>
<description>The allsortgroup blog rss feed!</description>

$data = mysql_query("SELECT * FROM blog LIMIT 30");

while($row = mysql_fetch_array($data)) {

echo '<item>


echo '</channel></rss>';

All is working fine at...


But, when i change the limit from 30 to say 50, the content goes black and only the title and description is there. Also, is does this also what i add in ORDER BY id DESC.

Does anyone know why?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum