title: split keywords for post php mysql
body: <p>i have one table store post id and it's tags like :</p>
  
  <pre><code>Post_id |  Tags
  --------------------------------------
  1       |  keyword1,keyword2,keyword3
  </code></pre>
  
  <p>I want to loop though each row at this table and do :</p>
  
  <ul>
  <li><p>put the keyword1,keyword2,keyword3 in new table : </p>
  
  <pre><code>word_id    |  word_value
  -------------------------
     1       |  keyword1
     2       |  keyword2    
     3       |  keyword3
  </code></pre></li>
  <li><p>get mysql_insert_id() foreach (or exist word_id if word_value already there) and then put in the new table like :</p>
  
  <pre><code>post_id |  word_id
  ------------------
  1       |   1    
  1       |   2    
  1       |   3
  </code></pre></li>
  </ul>
  
  <p>I've using php and mysql for do that task but this is slowly. Anyone have good idea?</p>