close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Importing list

Thread began 11/07/2012 1:52 pm by russb335115 | Last modified 11/19/2013 2:37 pm by russb335115 | 1858 views | 11 replies

Jason ByrnesWebAssist

you can import a list that is in a CSV File to the Power Messenger MySQL Database using PHPMyAdmin or another MySQL GUI Tool.

importing CSV data to your database can be tricky.

the CSV file will need to be formatted correctly to fit the requirements of the Power Messenger database. The first row of the CSV file will need to set the column names, and use the same naming convention of the power messenger database. you dont need to include all of these columns in the csv file, but the column names you can use are:

UserEmail
UserFirstName
UserLastName
UserCity
UserState
UserZip
UserPhone
UserFax
UserCountry
UserAddress
UserAddress2

Once the CSV file is edited to include the column names, open it in a text editor like TextWrangler or Notepad

the first row will be a comma separated list of the column names, select the entire first row and select Edit -> Cut, make sure not to leave an empty row at the beging and save it (I recomend using save as to save it with a different name.

The reason for this step is that we need a comma separated list of the column names that are being imported in the same order as the columns in the csv file, this is needed for the import operation in PHPMyAdmin, we dont want to leave the column names in the CSV file, or a row will be inserted in the database with the column names.

I recommend using the save as method so you have one csv file with the data and column names and another with just the data, this way as your experimenting, you can easily copy the comma separated list of column names again.

Now open PHPMyADmin, select the power mesenger database, and select the pm1_users table

Go to the Import Tab.

Click the location of text file and select the csv file that has only the data in it

under the section "Format of imported file" select CSV.

Leave all the defaults as is except for:
In Fields terminated by, change that to a comma ","

In Column name paste the comma separated list of the columns that had been cut from the CSV file.

then click go.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...