<?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 sintassi Mysql]]></title><description><![CDATA[<p dir="auto">Salve sto installando uno script che richiede nl'uso di mysql.<br />
Ho installato il tutto ed e' andata ok.<br />
Solo che quando vado ad eseguire alcune query mi da questo errore:</p>
<p dir="auto">You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1</p>
<p dir="auto">La query che eseguo e':</p>
<h2>$gId = $_GET [ gId ];<br />
$catname= $_GET[fname];<br />
$title= $catname;<br />
$sql= "SELECT * FROM games where gId like '$gId'";<br />
$rs= mysql_query($sql, $db) or die(mysql_error());<br />
$datas = mysql_fetch_array($rs);<br />
$swf = $datas[gSwFile];<br />
$gId = $datas[gId];<br />
mysql_query( " UPDATE games SET score = score + 1 WHERE gId = $gId " , $db ) or die ( mysql_error() );<br />
$sql = "SELECT rate, comments FROM komento WHERE catid = '$gId'";<br />
$comments = mysql_query($sql, $db) or die(mysql_error());<br />
$rating = $datas['votes'] &gt; 0 ? round( $datas[points] / $datas['votes'] ) : 0;</h2>
<p dir="auto">Il server e' un mysql5<br />
Se serve posso inviare anche il sql che ho usato per creare le tabelle</p>
<p dir="auto">Sapreste aiutarmi?</p>
<p dir="auto">Sto impazzendo!!</p>
<p dir="auto">Grazie<br />
Nello</p>
]]></description><link>https://dev.connect.gt/topic/23493/errore-sintassi-mysql</link><generator>RSS for Node</generator><lastBuildDate>Sun, 06 Dec 2026 13:02:08 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/23493.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 15 Dec 2006 12:24:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Errore sintassi Mysql on Fri, 15 Dec 2006 16:50:51 GMT]]></title><description><![CDATA[<p dir="auto">Grazie lo stesso ho risolto:</p>
<p dir="auto">Mancavano gli '' a $gId</p>
<p dir="auto">Ciao</p>
]]></description><link>https://dev.connect.gt/post/410013</link><guid isPermaLink="true">https://dev.connect.gt/post/410013</guid><dc:creator><![CDATA[raul]]></dc:creator><pubDate>Fri, 15 Dec 2006 16:50:51 GMT</pubDate></item></channel></rss>