Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8780651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:06:40+00:00 2026-06-13T20:06:40+00:00

My client got a excel file with the following structure name | email —————————-

  • 0

My client got a excel file with the following structure

name     |     email
----------------------------
Name     |   email here
Name     |   email here
Name     |   email here
Name     |   email here
Name     |   email here
Name     |   email here

I would likes to make a MySQL database table according to this pattern and save the data into MySQL.

I am wonder how to do this.
Also there is an option needed

We have to check that if that corresponding user had a correct email address, ie of the form @ .

Can we check the data as a loop while importing ?

Also how to convert this data to MySQL ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T20:06:41+00:00Added an answer on June 13, 2026 at 8:06 pm

    Save this excel file as csv and run the following code with add your changings

    $source = fopen('email.csv', 'r') or die("Problem open file");
        while (($data = fgetcsv($source, 1000, ",")) !== FALSE)
        {
            $name = $data[0];
            $email = $data[1];
    
    
            mysql_query("INSERT INTO `table` (`name`,`email`) VALUES ('".$name."','".$email."') ");
    
    
        }
        fclose($source);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a client who got a zipped file that has all the database
I got the design (PSD) from client. Which should i choose to make custom
I got some file sample.mt from client, and when i open info, it reveals
I've got a MySQL database table with an ISO-8859-1 encoded text field containing user
CLIENT SIDE my client got the following callback contract: [ServiceContract] interface IEvent { [OperationContract(IsOneWay
I've got a client/server application written in C# using WPF. The database on the
with the following python method, I make a call to an Excel macro. I
I got this client application that sends my file fully to server. But I
I've got a client database with a large range of stock items, which are
I got a client which is website is under SSL only on the payment

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.