title: Can not Insert foreach loop values into mysql table
body: <p>I scraped date from another website and then insert all fetching values into my table <strong>sracp-data</strong>. My Value insert successfully, but only last value insert.</p>
  
  <p>My Fetching values look like: </p>
  
  <p><img src="https://i.stack.imgur.com/o4jbN.png" alt="enter image description here"></p>
  
  <p>My Fetching Cood:I Used for scraping data with <strong>SIMPLE HTML DOM</strong></p>
  
  <pre><code>            include './simple_html_dom.php';       //Inlcude HTML DOM
              $html = file_get_html('http://tacticalwalls.com/shop/');  //Scrapping site/url
                //**ul[class=products] here is specific DIV values** 
              foreach ($html-&gt;find('ul[class=products]') as $items) {
                  foreach ($items-&gt;find('a') as $anchor) {          
                      $item_a = $anchor-&gt;href;
                  }
                  foreach ($items-&gt;find('img') as $img){
                      $item_img = $img-&gt;src;
                  }
  
                   $db_conn = mysql_connect('localhost', 'root', '') or die('error');
                      mysql_select_db('db_scrap', $db_conn) or die(mysql_error());
  
                      $sql = "INSERT INTO scrap_data(url, imges) VALUES ('".$item_a."', '".$item_img."')";
  
                      mysql_query($sql) or die(mysql_error()); 
                   }
  </code></pre>
  
  <p><strong>My Problem is, How can I Insert all fetching value into table specific column. Like &lt; a > Tag insert into the url column and &lt; img > tag value insert into the images colunmn?</strong></p>