I have no idea. This causes seemingly random time-outs. These in turn break the flash that i am loading it into. Has anyone seen anything like this before?
<?php
require_once("../includes/class.database.php");
require_once("../includes/dbConnectInfo.inc");
require_once("../includes/functions.php");
include("../includes/conn.php");
$cat = $_GET['category'];
$result = mysql_query("SELECT * FROM media WHERE related_page_id=4 && type='copy' ORDER BY id ASC LIMIT 6");
$media = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n";
$media .= "<content>\n";
while($row = mysql_fetch_array($result))
{
$media .="<member>\n";
$body = $row[copy];
if($row[title] == "")
{
$media .= "<title><![CDATA[";
$media .= "Team";
$media .="]]></title>\n";
}elseif($row['path']==""){
$name = explode("/",$row[title],2);
$media .= "<name><![CDATA[";
$media .= $name[0];
$media .="]]></name>\n";
$media .= "<job><![CDATA[";
$media .= $name[1];
$media .="]]></job>\n";
}
if($body !="")
{
$media .="<bio><![CDATA[";
$media .= $body;
$media .= "]]></bio>\n";
}
$something = $row['id'];
$result1 = mysql_query("SELECT * FROM media WHERE assets='$something'");
$media .= "<images>";
while($row1 = mysql_fetch_array($result1))
{
$img = explode("/",$row1[path],2);
$media .= "<image url='$img[1]' />";
}
$media .= "</images>\n";
$media .="</member>\n";
}
$media .= "</content>";
echo $media;
?>