<?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[Immagini da percorso PHP MYSQL]]></title><description><![CDATA[<p dir="auto">Ciao a tutti e complimenti per l'aiuto che date.</p>
<p dir="auto">Ecco il mio problema: ho memorizzato in un db il percorso delle immagini uploadate, quando le voglio visualizzare mi viene stampato a video solo il percorso.<br />
Il  codice è questo:</p>
<p dir="auto">&lt;?php include('Connections/mind.php'); ?&gt;<br />
&lt;?php<br />
if (!function_exists("GetSQLValueString")) {<br />
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")<br />
{<br />
if (PHP_VERSION &lt; 6) {<br />
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;<br />
}</p>
<p dir="auto">$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);</p>
<p dir="auto">switch ($theType) {<br />
case "text":<br />
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";<br />
break;<br />
case "long":<br />
case "int":<br />
$theValue = ($theValue != "") ? intval($theValue) : "NULL";<br />
break;<br />
case "double":<br />
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";<br />
break;<br />
case "date":<br />
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";<br />
break;<br />
case "defined":<br />
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;<br />
break;<br />
}<br />
return $theValue;<br />
}<br />
}</p>
<p dir="auto">mysql_select_db($database_mind, $mind);<br />
$query_immagini = "SELECT * FROM 1_articoli ORDER BY id_articoli DESC";<br />
$immagini = mysql_query($query_immagini, $mind) or die(mysql_error());<br />
$row_immagini = mysql_fetch_assoc($immagini);<br />
$totalRows_immagini = mysql_num_rows($immagini);</p>
<p dir="auto">?&gt;<br />
&lt;?php do { ?&gt;<br />
&lt;p&gt;&lt;/p&gt;<br />
&lt;?php echo $row_immagini['id_articoli']; ?&gt;&lt;br /&gt;<br />
&lt;img name="" src="&lt;?php echo $row_immagini['immagine_articoli']; ?&gt;" width="32" height="32" alt="&lt;?php echo $row_immagini['immagine_articoli']; ?&gt;" /&gt;&lt;br /&gt;<br />
&lt;img name="" src="&lt;?php echo $row_immagini['thumb_articoli']; ?&gt;" width="32" height="32" alt="&lt;?php echo $row_immagini['thumb_articoli']; ?&gt;" /&gt;&lt;br /&gt;<br />
&lt;?php } while ($row_immagini = mysql_fetch_assoc($immagini)); ?&gt;<br />
&lt;?php<br />
mysql_free_result($immagini);<br />
?&gt;</p>
<p dir="auto">Sapete dirmi dove sbaglio? Ho provato sia ad impostare i permessi in 764 sia a cambiare il percorso relativo (sia con ../ sia senza), ma nulla da fare....<br />
Vi ringrazio in anticipo!<br />
MArco</p>
]]></description><link>https://dev.connect.gt/topic/236835/immagini-da-percorso-php-mysql</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 13:32:30 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/236835.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 27 Dec 2018 15:57:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Immagini da percorso PHP MYSQL on Thu, 27 Dec 2018 17:30:43 GMT]]></title><description><![CDATA[<p dir="auto">Dove sbagli?</p>
<p dir="auto">Inanzitutto utilizzi le funzioni native di MySQL, mysql_* che ormai sono deprecate (e rimosse da PHP 7) da non so quanti anni, usa PDO al loro posto.</p>
<p dir="auto">Ti lascio una risorsa che ti sarà utile ora e in futuro <a href="http://it.phptherightway.com" rel="nofollow ugc">it.phptherightway.com</a></p>
<p dir="auto">Ciao</p>
]]></description><link>https://dev.connect.gt/post/1254453</link><guid isPermaLink="true">https://dev.connect.gt/post/1254453</guid><dc:creator><![CDATA[flaviors200]]></dc:creator><pubDate>Thu, 27 Dec 2018 17:30:43 GMT</pubDate></item></channel></rss>