Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP generating XML, time-outs randomly
    text
    copied!<p>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?</p> <pre><code>&lt;?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 &amp;&amp; type='copy' ORDER BY id ASC LIMIT 6"); $media = "&lt;?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?&gt;\n"; $media .= "&lt;content&gt;\n"; while($row = mysql_fetch_array($result)) { $media .="&lt;member&gt;\n"; $body = $row[copy]; if($row[title] == "") { $media .= "&lt;title&gt;&lt;![CDATA["; $media .= "Team"; $media .="]]&gt;&lt;/title&gt;\n"; } elseif ($row['path']=="") { $name = explode("/",$row[title],2); $media .= "&lt;name&gt;&lt;![CDATA["; $media .= $name[0]; $media .="]]&gt;&lt;/name&gt;\n"; $media .= "&lt;job&gt;&lt;![CDATA["; $media .= $name[1]; $media .="]]&gt;&lt;/job&gt;\n"; } if($body !="") { $media .="&lt;bio&gt;&lt;![CDATA["; $media .= $body; $media .= "]]&gt;&lt;/bio&gt;\n"; } $something = $row['id']; $result1 = mysql_query("SELECT * FROM media WHERE assets='$something'"); $media .= "&lt;images&gt;"; while($row1 = mysql_fetch_array($result1)) { $img = explode("/",$row1[path],2); $media .= "&lt;image url='$img[1]' /&gt;"; } $media .= "&lt;/images&gt;\n"; $media .="&lt;/member&gt;\n"; } $media .= "&lt;/content&gt;"; echo $media; ?&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload