<?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[problema id request]]></title><description><![CDATA[<p dir="auto">salve a tutti, sto realizzando una pagina dinamica che prelevi dati da un database.<br />
ho dei problemi riguardo la variabile id che deve essere richiamata attraverso l'url<br />
questo è il codice, dove ho sbagliato?<br />
&lt;?php<br />
$db = mysql_connect("localhost","user","pass");<br />
mysql_select_db("campaniavideo_it_db",$db);<br />
$request = "SELECT * FROM eventi WHERE id=".$id;<br />
$result = mysql_query ($request,$db);<br />
$eventi = mysql_fetch_object($result);<br />
mysql_free_result($result);<br />
?&gt;&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" rel="nofollow ugc">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"&gt;<br />
&lt;html xmlns="<a href="http://www.w3.org/1999/xhtml" rel="nofollow ugc">http://www.w3.org/1999/xhtml</a>"&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;<br />
&lt;title&gt;eventi.php&lt;/title&gt;<br />
&lt;/head&gt;</p>
<p dir="auto">&lt;body&gt;<br />
&lt;table width="760" border="0" cellspacing="0" cellpadding="0"&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&lt;?php echo $eventi-&gt;titolo ?&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&lt;?php echo $eventi-&gt;testo ?&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p dir="auto">non ci sono problemi di collegamento  al database perchè scrivendo dopo WHERE semplicemente id=1 funziona tutto</p>
]]></description><link>https://dev.connect.gt/topic/27539/problema-id-request</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 18:30:03 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/27539.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 10 Feb 2007 22:27:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to problema id request on Thu, 15 Feb 2007 01:20:55 GMT]]></title><description><![CDATA[<p dir="auto">Prova $request = "SELECT * FROM eventi WHERE id=".$GET['id'];</p>
]]></description><link>https://dev.connect.gt/post/460141</link><guid isPermaLink="true">https://dev.connect.gt/post/460141</guid><dc:creator><![CDATA[prodigy]]></dc:creator><pubDate>Thu, 15 Feb 2007 01:20:55 GMT</pubDate></item><item><title><![CDATA[Reply to problema id request on Wed, 14 Feb 2007 18:23:31 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">ho dei problemi riguardo la variabile id che deve essere richiamata attraverso l'url</p>
</blockquote>
<p dir="auto">senamion:Quindi è per forza tramite get e non è quello l'errore <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--wink" style="height:1.4em;width:auto;vertical-align:middle" title=";-)" alt="😉" /></p>
]]></description><link>https://dev.connect.gt/post/460142</link><guid isPermaLink="true">https://dev.connect.gt/post/460142</guid><dc:creator><![CDATA[probid]]></dc:creator><pubDate>Wed, 14 Feb 2007 18:23:31 GMT</pubDate></item><item><title><![CDATA[Reply to problema id request on Mon, 12 Feb 2007 09:09:08 GMT]]></title><description><![CDATA[<p dir="auto">Se id viene passata devi mettere invece che $id o:<br />
$_POST['id']<br />
oppure<br />
$_GET['id']<br />
A seconda che sia passata in post o in get.</p>
]]></description><link>https://dev.connect.gt/post/460143</link><guid isPermaLink="true">https://dev.connect.gt/post/460143</guid><dc:creator><![CDATA[senamion]]></dc:creator><pubDate>Mon, 12 Feb 2007 09:09:08 GMT</pubDate></item></channel></rss>