<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 45: Some suggested changes/patch for file upload</title><link href="https://sourceforge.net/p/sqlitemanager/bugs/45/" rel="alternate"/><link href="https://sourceforge.net/p/sqlitemanager/bugs/45/feed.atom" rel="self"/><id>https://sourceforge.net/p/sqlitemanager/bugs/45/</id><updated>2009-11-01T12:29:24Z</updated><subtitle>Recent changes to 45: Some suggested changes/patch for file upload</subtitle><entry><title>Some suggested changes/patch for file upload</title><link href="https://sourceforge.net/p/sqlitemanager/bugs/45/" rel="alternate"/><published>2009-11-01T12:29:24Z</published><updated>2009-11-01T12:29:24Z</updated><author><name>Eric Kemp-Benedict</name><uri>https://sourceforge.net/u/erickb/</uri></author><id>https://sourceforge.net6bf0ff09f945cebff25611f143ada6016c271b25</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello, I have made a couple of changes to the "SQLiteTableProperties.class.php" file that might be useful for other people. Here are the changes:&lt;/p&gt;
&lt;p&gt;Line 753, change to:&lt;br /&gt;
$recordElement = explode($sep, rtrim($record, "\n\r"));&lt;br /&gt;
That is, add "\n\r" to "rtrim" so that it doesn't get rid of trailing tabs--trailing tabs need to be there when the last item is null!&lt;/p&gt;
&lt;p&gt;Line 754, change to:&lt;br /&gt;
$query[] = "INSERT OR REPLACE INTO ".brackets($this-&amp;gt;table)." VALUES ('".implode("', '", $recordElement)."');";&lt;br /&gt;
By using "OR REPLACE", if there is a conflict it will update the line rather than exiting with an error and rolling back.&lt;/p&gt;
&lt;p&gt;Thanks for supplying this code. It is extremely helpful.&lt;/p&gt;
&lt;p&gt;I am attaching my revised file.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;
Eric&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>