<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Quick CSV import with visual mapping</title>
	<atom:link href="http://i1t2b3.com/2009/01/14/quick-csv-import-with-mapping/feed/" rel="self" type="application/rss+xml" />
	<link>http://i1t2b3.com/2009/01/14/quick-csv-import-with-mapping/</link>
	<description>Any fool can make things bigger and more complex</description>
	<lastBuildDate>Sun, 28 Feb 2010 16:07:12 +0300</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Michael G</title>
		<link>http://i1t2b3.com/2009/01/14/quick-csv-import-with-mapping/comment-page-2/#comment-903</link>
		<dc:creator>Michael G</dc:creator>
		<pubDate>Sun, 28 Feb 2010 16:07:12 +0000</pubDate>
		<guid isPermaLink="false">http://i1t2b3.com/?p=153#comment-903</guid>
		<description>Hi Skakunov,
Is there a direct link to download the application? The URL provided above is an incomplete URL:
http://code.assembla.com/quick_csv_mapping_import

Thanks,

 - michael</description>
		<content:encoded><![CDATA[<p>Hi Skakunov,<br />
Is there a direct link to download the application? The URL provided above is an incomplete URL:<br />
<a href="http://code.assembla.com/quick_csv_mapping_import" rel="nofollow">http://code.assembla.com/quick_csv_mapping_import</a></p>
<p>Thanks,</p>
<p> &#8211; michael</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: charlie</title>
		<link>http://i1t2b3.com/2009/01/14/quick-csv-import-with-mapping/comment-page-2/#comment-887</link>
		<dc:creator>charlie</dc:creator>
		<pubDate>Thu, 25 Feb 2010 17:04:57 +0000</pubDate>
		<guid isPermaLink="false">http://i1t2b3.com/?p=153#comment-887</guid>
		<description>Hey, thank you for the great script. I have a following scenario and i want to use your script to import data located in &quot;csv file&quot; on my local drive in to an &quot;existing&quot; table (i set the   var $table_name=community_fields_values)  in my database. This is the sql query i want to run. can you please help me where i should i put this query in your script.

******************

$sql = &quot;insert into  jos_community_fields_values set
      userid=$record-&gt;userid , field_id = 9, value=$record-&gt;Address&quot;;

  $db-&gt;query($sql);


$sql = &quot;insert into  jos_community_fields_values set
      userid=$record-&gt;userid , field_id = 11, value=$record-&gt;City&quot;;

  $db-&gt;query($sql);


 $sql = &quot;insert into  jos_community_fields_values set
      userid=$record-&gt;userid , field_id = 19, value=$record-&gt;Zip / Postal Code&quot;;

  $db-&gt;query($sql);


  $sql = &quot;insert into  jos_community_fields_values set
      userid=$record-&gt;userid , field_id = 10, value=$record-&gt;State&quot;;

  $db-&gt;query($sql);



**********************

thanks,
Charlie</description>
		<content:encoded><![CDATA[<p>Hey, thank you for the great script. I have a following scenario and i want to use your script to import data located in &#8220;csv file&#8221; on my local drive in to an &#8220;existing&#8221; table (i set the   var $table_name=community_fields_values)  in my database. This is the sql query i want to run. can you please help me where i should i put this query in your script.</p>
<p>******************</p>
<p>$sql = &#8220;insert into  jos_community_fields_values set<br />
      userid=$record-&gt;userid , field_id = 9, value=$record-&gt;Address&#8221;;</p>
<p>  $db-&gt;query($sql);</p>
<p>$sql = &#8220;insert into  jos_community_fields_values set<br />
      userid=$record-&gt;userid , field_id = 11, value=$record-&gt;City&#8221;;</p>
<p>  $db-&gt;query($sql);</p>
<p> $sql = &#8220;insert into  jos_community_fields_values set<br />
      userid=$record-&gt;userid , field_id = 19, value=$record-&gt;Zip / Postal Code&#8221;;</p>
<p>  $db-&gt;query($sql);</p>
<p>  $sql = &#8220;insert into  jos_community_fields_values set<br />
      userid=$record-&gt;userid , field_id = 10, value=$record-&gt;State&#8221;;</p>
<p>  $db-&gt;query($sql);</p>
<p>**********************</p>
<p>thanks,<br />
Charlie</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Skakunov Alexander</title>
		<link>http://i1t2b3.com/2009/01/14/quick-csv-import-with-mapping/comment-page-2/#comment-874</link>
		<dc:creator>Skakunov Alexander</dc:creator>
		<pubDate>Sun, 21 Feb 2010 18:02:42 +0000</pubDate>
		<guid isPermaLink="false">http://i1t2b3.com/?p=153#comment-874</guid>
		<description>I think you just need to register at &lt;a href=&quot;http://www.assembla.com?affiliate=i1t2b3&quot; rel=&quot;nofollow&quot;&gt;Assembla&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>I think you just need to register at <a href="http://www.assembla.com?affiliate=i1t2b3" rel="nofollow">Assembla</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Read</title>
		<link>http://i1t2b3.com/2009/01/14/quick-csv-import-with-mapping/comment-page-2/#comment-871</link>
		<dc:creator>Phil Read</dc:creator>
		<pubDate>Sun, 21 Feb 2010 02:28:12 +0000</pubDate>
		<guid isPermaLink="false">http://i1t2b3.com/?p=153#comment-871</guid>
		<description>The link is NOT working ;)

http://code.assembla.com/quick_csv_mapping_import goes to a 404 page, please help! 

Thanks.</description>
		<content:encoded><![CDATA[<p>The link is NOT working <img src='http://i1t2b3.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><a href="http://code.assembla.com/quick_csv_mapping_import" rel="nofollow">http://code.assembla.com/quick_csv_mapping_import</a> goes to a 404 page, please help! </p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://i1t2b3.com/2009/01/14/quick-csv-import-with-mapping/comment-page-2/#comment-870</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Sun, 21 Feb 2010 01:19:06 +0000</pubDate>
		<guid isPermaLink="false">http://i1t2b3.com/?p=153#comment-870</guid>
		<description>Hi, I&#039;m trying to download the visual mapping but get a PAGE ERROR when trying to view http://code.assembla.com/quick_csv_mapping_import

Can you please email me the code?

Thanks so much, Quick CSV Import rocks!</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m trying to download the visual mapping but get a PAGE ERROR when trying to view <a href="http://code.assembla.com/quick_csv_mapping_import" rel="nofollow">http://code.assembla.com/quick_csv_mapping_import</a></p>
<p>Can you please email me the code?</p>
<p>Thanks so much, Quick CSV Import rocks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://i1t2b3.com/2009/01/14/quick-csv-import-with-mapping/comment-page-2/#comment-863</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Sun, 14 Feb 2010 15:03:33 +0000</pubDate>
		<guid isPermaLink="false">http://i1t2b3.com/?p=153#comment-863</guid>
		<description>Thanks Skakunov, I was able to set the class field.  The last thing I&#039;m not able to work out is how to set the when the line/row terminates.  One of my columns is a text and often has commas that show up so the import is cutting of the text field.  

Is there a way with this script to ignore these commas?  With php myadmin I&#039;m able to do this by setting &quot;Lines terminated: Auto&quot;

Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks Skakunov, I was able to set the class field.  The last thing I&#8217;m not able to work out is how to set the when the line/row terminates.  One of my columns is a text and often has commas that show up so the import is cutting of the text field.  </p>
<p>Is there a way with this script to ignore these commas?  With php myadmin I&#8217;m able to do this by setting &#8220;Lines terminated: Auto&#8221;</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Skakunov Alexander</title>
		<link>http://i1t2b3.com/2009/01/14/quick-csv-import-with-mapping/comment-page-2/#comment-858</link>
		<dc:creator>Skakunov Alexander</dc:creator>
		<pubDate>Wed, 10 Feb 2010 19:52:51 +0000</pubDate>
		<guid isPermaLink="false">http://i1t2b3.com/?p=153#comment-858</guid>
		<description>There is an example.
You need to set the class field.</description>
		<content:encoded><![CDATA[<p>There is an example.<br />
You need to set the class field.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://i1t2b3.com/2009/01/14/quick-csv-import-with-mapping/comment-page-2/#comment-857</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Wed, 10 Feb 2010 19:41:21 +0000</pubDate>
		<guid isPermaLink="false">http://i1t2b3.com/?p=153#comment-857</guid>
		<description>Thank you.  This is a great tool.  

My only problem is I can&#039;t figure out how to get the csv loaded into my current table.  I&#039;m not sure where to add the table name.</description>
		<content:encoded><![CDATA[<p>Thank you.  This is a great tool.  </p>
<p>My only problem is I can&#8217;t figure out how to get the csv loaded into my current table.  I&#8217;m not sure where to add the table name.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe G.</title>
		<link>http://i1t2b3.com/2009/01/14/quick-csv-import-with-mapping/comment-page-2/#comment-847</link>
		<dc:creator>Joe G.</dc:creator>
		<pubDate>Mon, 04 Jan 2010 20:54:23 +0000</pubDate>
		<guid isPermaLink="false">http://i1t2b3.com/?p=153#comment-847</guid>
		<description>I was able to do what i was looking for above by replacing IGNORE INTO TABLE on line 101 in file /classes/Quick_CSV_import.class.php with REPLACE INTO TABLE

This worked for me as long as there is a primary key where I needed it...not sure if this is safe for general use, but it was for me.
-Joe</description>
		<content:encoded><![CDATA[<p>I was able to do what i was looking for above by replacing IGNORE INTO TABLE on line 101 in file /classes/Quick_CSV_import.class.php with REPLACE INTO TABLE</p>
<p>This worked for me as long as there is a primary key where I needed it&#8230;not sure if this is safe for general use, but it was for me.<br />
-Joe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe G.</title>
		<link>http://i1t2b3.com/2009/01/14/quick-csv-import-with-mapping/comment-page-2/#comment-845</link>
		<dc:creator>Joe G.</dc:creator>
		<pubDate>Thu, 31 Dec 2009 21:52:14 +0000</pubDate>
		<guid isPermaLink="false">http://i1t2b3.com/?p=153#comment-845</guid>
		<description>Hi Skakunov,
This is a great tool for my workbelt, but I have a question, when i upload the same file to the same database table, it duplicates the entries in the csv file. Is there a way to perform &quot;If &#039;primarykey&#039; exists, update, else insert&quot; instead of always inserting a new row? What I am looking to do is update inventory, so since the information is already there, I need only change the quantity, but it needs the item sku to reference obviously. Thanks in advance if you can answer this and thanks again for a great program!
-Joe</description>
		<content:encoded><![CDATA[<p>Hi Skakunov,<br />
This is a great tool for my workbelt, but I have a question, when i upload the same file to the same database table, it duplicates the entries in the csv file. Is there a way to perform &#8220;If &#8216;primarykey&#8217; exists, update, else insert&#8221; instead of always inserting a new row? What I am looking to do is update inventory, so since the information is already there, I need only change the quantity, but it needs the item sku to reference obviously. Thanks in advance if you can answer this and thanks again for a great program!<br />
-Joe</p>
]]></content:encoded>
	</item>
</channel>
</rss>
