<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[errore mysql_unbuffered_query]]></title><description><![CDATA[<p dir="auto">Salve a tutti continuo a ricevere il seguente errore per una query che dovrebbe generare una sitemap:</p>
<p dir="auto">ERRORE<br />
mysql_unbuffered_query(): supplied argument is not a valid MySQL</p>
<p dir="auto">QUERY<br />
header("Content-Type: text/xml");<br />
function xmlentities($text)<br />
{<br />
$search = array('&amp;','&lt;','&gt;','"',''');<br />
$replace = array('&amp;','&lt;','&gt;','"',''');<br />
return str_replace($search,$replace,$text);<br />
}<br />
print chr(60)."?xml version='1.0' encoding='ISO-8859-1'?".chr(62);<br />
print chr(60)."urlset xmlns='h t t p://w w w .google.com/schemas/sitemap/0.84' xmlns:xsi='h t t p ://w w w .w3.org/2001/XMLSchema-instance' xsi:schemaLocation='h t t p :// w w <a href="http://w.google.com/schemas/sitemap/0.84" rel="nofollow ugc">w.google.com/schemas/sitemap/0.84</a> h t t p ://w w w .google.com/schemas/sitemap/0.84/sitemap.xsd'".chr(62);<br />
$sql = "SELECT * FROM tabella LIMIT 80000,20000 ";<br />
$link = @mysql_connect($databaseServer,$databaseUsername,$databasePassword);<br />
@mysql_select_db($databaseName,$link);<br />
$result = mysql_unbuffered_query($sql,$link);<br />
while($row = mysql_fetch_array($result,MYSQL_ASSOC))<br />
{<br />
// create the loc (URL) value based on the $row array, for example:<br />
$titolo=str_replace(" ","-",strip_tags($row['itemname']));<br />
$titolo=str_replace("/","",$titolo);<br />
$titolo=str_replace(",","",$titolo);<br />
$loc ="h t t p ://w w w .sito.com/".$titolo.",itemname,".$row['id'].",id,auctiondetails";<br />
print "&lt;url&gt;";<br />
print "&lt;loc&gt;".xmlentities($loc)."&lt;/loc&gt;";<br />
print "&lt;lastmod&gt;2010-06-11&lt;/lastmod&gt;";<br />
print "&lt;priority&gt;0.5&lt;/priority&gt;";<br />
print "&lt;/url&gt;";<br />
}<br />
print "&lt;/urlset&gt;";</p>
<p dir="auto">Help me!<br />
Grazie</p>
]]></description><link>https://dev.connect.gt/topic/129291/errore-mysql_unbuffered_query</link><generator>RSS for Node</generator><lastBuildDate>Sun, 29 Nov 2026 22:15:27 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/129291.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 11 Jun 2010 09:20:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to errore mysql_unbuffered_query on Sat, 12 Jun 2010 14:08:52 GMT]]></title><description><![CDATA[<p dir="auto">Il problema e' stato risolto.<br />
Non era un problema di query ma di connessione al database.</p>
]]></description><link>https://dev.connect.gt/post/917073</link><guid isPermaLink="true">https://dev.connect.gt/post/917073</guid><dc:creator><![CDATA[maxnegri]]></dc:creator><pubDate>Sat, 12 Jun 2010 14:08:52 GMT</pubDate></item></channel></rss>