<?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[Non funziona la query]]></title><description><![CDATA[<p dir="auto">Salve a tutti sono alle prese con una delle prime applicazione php-mysql<br />
e non riesco a far funzionare questo script.</p>
<p dir="auto">Mi da questo errore: QUERY FALLITA!!!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 '1' at line 1</p>
<p dir="auto">Vi posto il codice</p>
<p dir="auto">&lt;?php<br />
$nome = $_POST["nome"];<br />
$cognome = $_POST["cognome"];</p>
<p dir="auto">$chandle = mysql_connect("localhost:8889", "root", "root");<br />
$db_selected = mysql_select_db("villapapaleo");<br />
$sql = mysql_query("INSERT INTO contatti_newsletter(nome,cognome) VALUES('$nome', '$cognome')");<br />
mysql_query($sql) or die("QUERY FALLITA!!!" . mysql_error());</p>
<p dir="auto">?&gt;</p>
]]></description><link>https://dev.connect.gt/topic/100441/non-funziona-la-query</link><generator>RSS for Node</generator><lastBuildDate>Fri, 27 Nov 2026 05:15:14 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/100441.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 28 Apr 2009 19:36:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Non funziona la query on Tue, 28 Apr 2009 20:33:44 GMT]]></title><description><![CDATA[<p dir="auto">Riscrivi</p>
<pre><code class="language-php">$sql =  mysql_query("INSERT INTO contatti_newsletter(nome,cognome) VALUES('$nome', '$cognome')");  
mysql_query($sql) or die("QUERY FALLITA!!!" .  mysql_error());
</code></pre>
<p dir="auto">In</p>
<pre><code class="language-php">$sql =  mysql_query("INSERT INTO contatti_newsletter (nome, cognome) VALUES ('$nome', '$cognome')") or die("QUERY FALLITA!!!" .  mysql_error());
</code></pre>
<p dir="auto">Non ripetere due volte mysql_query();<br />
Ciao!</p>
]]></description><link>https://dev.connect.gt/post/827484</link><guid isPermaLink="true">https://dev.connect.gt/post/827484</guid><dc:creator><![CDATA[sups]]></dc:creator><pubDate>Tue, 28 Apr 2009 20:33:44 GMT</pubDate></item></channel></rss>