<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nnaemeka</title>
    <description>The latest articles on DEV Community by Nnaemeka (@codegenty).</description>
    <link>https://dev.to/codegenty</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F246412%2Fc1cef1d3-14d4-4d27-8ed6-568ae0b6675c.jpg</url>
      <title>DEV Community: Nnaemeka</title>
      <link>https://dev.to/codegenty</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/codegenty"/>
    <language>en</language>
    <item>
      <title>How to fetch data from mysql table and insert into another table using php?</title>
      <dc:creator>Nnaemeka</dc:creator>
      <pubDate>Sat, 20 Jun 2020 23:02:23 +0000</pubDate>
      <link>https://dev.to/codegenty/how-to-fetch-data-from-mysql-table-and-insert-into-another-table-using-php-29kl</link>
      <guid>https://dev.to/codegenty/how-to-fetch-data-from-mysql-table-and-insert-into-another-table-using-php-29kl</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AoTUKOcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/62492661/how-to-fetch-data-from-mysql-table-and-insert-into-another-table-using-php" rel="noopener noreferrer"&gt;
            How to fetch data from mysql table and insert into another table using php?
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Jun 20 '20&lt;/span&gt;
            &lt;span&gt;Comments: 3&lt;/span&gt;
            &lt;span&gt;Answers: 1&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/62492661/how-to-fetch-data-from-mysql-table-and-insert-into-another-table-using-php" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oeieW07A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          -2
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h2-sXgSn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;Here is my sql query below&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;select Client, count(*) as Sales FROM sale_tbl GROUP BY Client
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The query will fetch records like this&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Client Sales
John     5
Bob      4
Doe      5
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now i want to insert this record into another table in the same database named data_tbl with three(3) columns…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/62492661/how-to-fetch-data-from-mysql-table-and-insert-into-another-table-using-php" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Question&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>php</category>
      <category>laravel</category>
      <category>database</category>
    </item>
  </channel>
</rss>
