Page 1 of 2

I figured I would st

Posted: 11 May 2008, 19:47
by dax702
I figured I would start a new thread since other people might have this same question. I discovered that my old cgi guestbook stored its entries in a csv type file. All the fields are separated nicely when I open it in a CSV editor.

I would like to know how to get those entries into the SQL database for Phoca Guestbook.

I should also mention that I don't know any SQL commands, but I am able to navigate in PhpMyAdmin fairly well.

The problem will be

Posted: 12 May 2008, 10:22
by Jan
The problem will be maybe the database structure... has your old guestbook the same columns as Phoca Gallery have? if not, CSV import doesn't help...

PhpMyAdmin, I think is the best way... store old data in SQL file and then instert this SQL file into a new table (but only in case the columns and columns types are the same)

I've hired the

Posted: 12 May 2008, 15:54
by dax702
I've hired the developer of my old guestbook to import the entries into your guestbook, including those dates. He can format the CSV file to have the same fields as the phoca guestbook's

So then just import

Posted: 12 May 2008, 20:30
by Jan
So then just import the file into a database (I think, maybe the phpMyAdmin can work with CSV, but I am not sure)

Maybe I will try to

Posted: 12 May 2008, 21:33
by dax702
Maybe I will try to do it myself; Do I just need to make sure the columns in my csv file match the ones in the phoca guestbook sql table?

Yes, the columns mus

Posted: 12 May 2008, 23:01
by Jan
Yes, the columns must be the same (count of columns and the same types)

When you say the sam

Posted: 12 May 2008, 23:24
by dax702
When you say the same types, you just mean that that the data in the CSV file columns needs to match what is specified in the table, correct?

Same types means:

Posted: 13 May 2008, 10:24
by Jan
Same types means:

text should be text (e.g.: 'some text'
int (integer - number) should be int (e.g '0')
date should be date...

Yes, date is the onl

Posted: 13 May 2008, 10:35
by dax702
Yes, date is the only one that is giving me a problem for the moment, I will try again tomorrow. Off to sleep now....

the date should have

Posted: 13 May 2008, 11:24
by Jan
the date should have this format:

2008-05-13 16:23:17