title: Javascript/PHP, use text file as a database and organize content into an arrayed table
body: <p>I'm trying to find the easiest way to do this. (PHP or Javascript)
  Basically, I have a text file that looks like this: </p>
  
  <pre><code>1
  的
  de/dí /dì 
  (possessive particle)/of, really and truly, aim/clear
  2
  一
  yī 
  one/1/single/a(n)
  3
  是
  shì 
  is/are/am/yes/to be
  4
  不
  bù /bú 
  (negative prefix)/not/no
  5
  了
  le/liǎo /liào 
  (modal particle intensifying preceding clause)/(completed action marker), to know/to understand/to know, clear, look afar from a high place
  </code></pre>
  
  <p>I want to read the data and insert it into a table such as: </p>
  
  <pre><code>&lt;table cellpadding="0" cellspacing="0" border="1"&gt;
      &lt;tr&gt;
        &lt;td width="50" height="50" align="center"&gt;1&lt;/td&gt;
        &lt;td width="50" height="50" align="center" &gt;的&lt;/td&gt;
        &lt;td width="50" height="50" align="center"&gt;de/dí /dì&lt;/td&gt;
          &lt;td width="50" height="50" align="center"&gt;(possessive particle)/of, really and truly, aim/clear&lt;/td&gt;
  
      &lt;/tr&gt;
          &lt;tr&gt;
        &lt;td width="50" height="50" align="center"&gt;2&lt;/td&gt;
        &lt;td width="50" height="50" align="center"&gt;一&lt;/td&gt;
        &lt;td width="50" height="50" align="center"&gt;yī &lt;/td&gt;
          &lt;td width="50" height="50" align="center"&gt;one/1/single/a(n)&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I suppose there are two ways to do this. The first is organizing the content into variables (1a, 1b, 1c, 1d, 2a, 2b, 2c, 2d...) and then find some way to with minimal effort to insert the variables into a set number of tables. </p>
  
  <p>The second way is to organize the data in an array, then array the data to generate a table. I think this may be the best way, but I need to be able to specify which portion of the table (like page 1 (entries 1-100), etc. </p>