php generating xml, time-outs randomly
i have idea. causes clearly futile time-outs. spin smack peep i am loading into. anyone seen anything 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 * media where related_page_id=4 && type='copy' method id asc border 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 * 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;
?>
Comments
Post a Comment