<?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[leggere xls e scrivere su mysql]]></title><description><![CDATA[<p dir="auto">Ciao a tutti<br />
ho letto e studiato e vado avanti nel php ma sono ancora un ....</p>
<p dir="auto">con questo script:</p>
<p dir="auto">mysql_select_db("wr");<br />
for ($i = 2; $i &lt;= $data-&gt;sheets[0]['numRows']; $i++){<br />
@$cliente= "".$data-&gt;sheets[0]['cells'][$i][1]."";<br />
@$odl= "".$data-&gt;sheets[0]['cells'][$i][3]."";<br />
@$rdl= "".$data-&gt;sheets[0]['cells'][$i][4]."";<br />
@$stato= "".$data-&gt;sheets[0]['cells'][$i][6]."";<br />
@$descrizione= "".$data-&gt;sheets[0]['cells'][$i][9]."";<br />
@$rfa= "".$data-&gt;sheets[0]['cells'][$i][11]."";<br />
@$stima= "".$data-&gt;sheets[0]['cells'][$i][13]."";<br />
@$imponibile= "".$data-&gt;sheets[0]['cells'][$i][15]."";<br />
@$tipo= "".$data-&gt;sheets[0]['cells'][$i][25]."";<br />
@$previsto= "".$data-&gt;sheets[0]['cells'][$i][30]."";<br />
@$effettivo= "".$data-&gt;sheets[0]['cells'][$i][31]."";<br />
$query="INSERT INTO wr (cliente,odl,rdl,tipo,stato,descrizione,rfa,stima,imponibile,previsto,effettivo) values('$cliente','$odl','$rdl','$tipo','$stato','$descrizione','$rfa','$stima','$imponibile','$previsto','$effettivo')";</p>
<p dir="auto">Leggo il foglio xls ma mi risultano meno record di quelli esistenti, ho capito che se incontra un campo vuoto fallisce la scrittura del record intero, mi chiedo:</p>
<p dir="auto"><strong>come posso dire alla query di scrivere il record anche se un campo è vuoto?</strong></p>
<p dir="auto">grazie in anticipo</p>
]]></description><link>https://dev.connect.gt/topic/51452/leggere-xls-e-scrivere-su-mysql</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 18:20:29 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/51452.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 24 Oct 2007 12:39:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to leggere xls e scrivere su mysql on Wed, 24 Oct 2007 13:09:29 GMT]]></title><description><![CDATA[<p dir="auto">ciao grazie della risposta<br />
ma forse mi sono spiegato male il db ha già i campi in NULL secondo me è proprio il codice che legge l'xls che trovando un campo vuoto fallisce la sctittura di tutto il record, come se leggendolo e trovandolo vuoto lo considera tutto vuoto</p>
<p dir="auto">thanks in anticipo se mi aiutate</p>
]]></description><link>https://dev.connect.gt/post/624080</link><guid isPermaLink="true">https://dev.connect.gt/post/624080</guid><dc:creator><![CDATA[linno]]></dc:creator><pubDate>Wed, 24 Oct 2007 13:09:29 GMT</pubDate></item><item><title><![CDATA[Reply to leggere xls e scrivere su mysql on Wed, 24 Oct 2007 13:03:41 GMT]]></title><description><![CDATA[<p dir="auto">nella creazione della struttura della tabella assegni al campo che ti interessa il valore NULL al posto di NOT NULL...</p>
]]></description><link>https://dev.connect.gt/post/624081</link><guid isPermaLink="true">https://dev.connect.gt/post/624081</guid><dc:creator><![CDATA[desu]]></dc:creator><pubDate>Wed, 24 Oct 2007 13:03:41 GMT</pubDate></item></channel></rss>