<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1018654" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1018654</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/importing-txt-file-mysql-db#comment-1109877</link>
    <description> &lt;p&gt;If you are using phpMyAdmin to import, save the file as a .csv file and try it with the quotes. When importing, phpMyAdmin gives you the option for fields to be optionally enclosed with quotes.&lt;/p&gt;
 </description>
     <pubDate>Sun, 02 Jun 2002 00:46:49 +0000</pubDate>
 <dc:creator>cds</dc:creator>
 <guid isPermaLink="false">comment 1109877 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/importing-txt-file-mysql-db#comment-1109875</link>
    <description> &lt;p&gt;there are spaces, but no commas.&lt;br /&gt;
I tried the excell method, it did add quotes to everything, had to use editpad, file was to big for notepad. tried inserting a smaller version and the fields are there, just no content. I removed the spaces first btw lol, not that it would serve my needs but could help trying to figure it out, maybe it could be the &#039;.&#039; and &#039;=&#039; etc.&lt;br /&gt;
I might try another approach, less info, more fields&lt;/p&gt;
&lt;p&gt;I think I have to hit the books some more, try understand this mess&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
 </description>
     <pubDate>Sat, 01 Jun 2002 22:44:08 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1109875 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/importing-txt-file-mysql-db#comment-1109864</link>
    <description> &lt;p&gt;Are there spaces or commas between the fields? If not, I would try opening it in a spreadsheet like Excel. Then save the the file as a tab delimited text file. After you save the file open it in Notepad and make sure that Excel didn&#039;t add quotes &quot; around the fields. If so, use the replace in Notepad to delete the &quot;. Next you can import into MySQL by this statement:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;load data local infile &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;pathto/filename.txt\&quot; into table tablename&lt;br /&gt;(pid, pname, pdesc, phit, pcat, pdate);&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
then do a select statement to verify data:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;SELECT &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;* &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;from tablename backslash G&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;For some reason the backslash won&#039;t show up here. I usually use backslash G instead of ; since it displays it in an easier to read format.&lt;/p&gt;
 </description>
     <pubDate>Sat, 01 Jun 2002 13:40:44 +0000</pubDate>
 <dc:creator>mairving</dc:creator>
 <guid isPermaLink="false">comment 1109864 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
