<?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[Probelmi con odbc_fetch_row]]></title><description><![CDATA[<p dir="auto">Ciao a tutti...ho provato a usare la funzione cerca del forum ma nn ho trovato topic usefull al mio problema...</p>
<p dir="auto">Bene...io ho del codice php, una funzione "eseguiQuery($var)" ke m esegue le query...<br />
Vi riporto il codice:</p>
<p dir="auto">function eseguiQuery($sSQL) {<br />
global  $username, $pass, $database;<br />
debug($sSQL);<br />
if (!$connect = odbc_connect("medina_sql.dsn", "", "")) {<br />
$bRetVal = FALSE;<br />
} else {<br />
if (!$result  = odbc_exec($connect, $sSQL)) {<br />
$bRetVal = odbc_error($connect);<br />
} else {<br />
$bRetVal = $result;<br />
debug("qry a buon fine");<br />
}<br />
}<br />
return ($bRetVal);<br />
}</p>
<p dir="auto">Ora...in un'altra pagina ho queste righe:</p>
<p dir="auto">$qry="SELECT * FROM configuration";<br />
$result=eseguiQuery($qry);<br />
$configurazione= new Configuration();<br />
while(odbc_fetch_row($result)){<br />
Ecc...Ecc...<br />
}</p>
<p dir="auto">L'errore che mi da è: "Warning: odbc_fetch_row(): supplied argument is not a valid ODBC result resource in C:\wamp\www\Medina PDA\Sito_DINAMICO_MEDINA_PDA\DAL\configuration.php on line 19"</p>
<p dir="auto">Dove "configuration.php on line 19" corrisponde alla riga del while del secondo codice che vi ho scritto...sapete aiutarmi per piacere??? Grazie.</p>
]]></description><link>https://dev.connect.gt/topic/11480/probelmi-con-odbc_fetch_row</link><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 21:48:39 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/11480.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 02 Jun 2006 15:09:10 GMT</pubDate><ttl>60</ttl></channel></rss>