[ help ] - Advanced String Manipulation
From: Charles (me_at_privacy.net)
Date: 09/25/04
- Previous message: Nikolai Chuvakhin: "Re: Number question"
- Next in thread: steve: "Re: [ help ] - Advanced String Manipulation"
- Reply: steve: "Re: [ help ] - Advanced String Manipulation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 24 Sep 2004 21:29:27 -0300
I have to convert a forum MySQL database (Gold Sonata Cyboard) into
another one (vBulletin)
I am beginner at PHP/MySQL, and I'd need some help please. I haven't been
able to find what I needed on PHP.NET
Here's what I have as the old forum data base structure:
CREATE TABLE `board_data` (
`id` int(10) unsigned NOT NULL auto_increment,
`board` int(10) unsigned NOT NULL default '0',
`thread` int(10) unsigned NOT NULL default '0',
`parent` int(10) unsigned NOT NULL default '0',
`author` varchar(64) NOT NULL default '',
`email` varchar(64) NOT NULL default '',
`subject` varchar(128) NOT NULL default '',
`body` text NOT NULL,
`datestamp` timestamp(14) NOT NULL,
`ip` varchar(16) NOT NULL default '',
`host` varchar(128) NOT NULL default '',
`vipflag` varchar(255) NOT NULL default '',
`link` varchar(128) NOT NULL default '',
`linkname` varchar(128) NOT NULL default '',
`image` varchar(128) NOT NULL default '',
`locked` tinyint(4) NOT NULL default '0',
`sticky` tinyint(4) NOT NULL default '0',
`email_replies` tinyint(4) NOT NULL default '0',
`hide_email` tinyint(4) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `board` (`board`,`thread`,`parent`)
) TYPE=MyISAM AUTO_INCREMENT=331 ;
And here's the new structure that I have to deal with:
CREATE TABLE `post` (
`postid` int(10) unsigned NOT NULL auto_increment,
`threadid` int(10) unsigned NOT NULL default '0',
`parentid` int(10) unsigned NOT NULL default '0',
`username` varchar(50) NOT NULL default '',
`userid` int(10) unsigned NOT NULL default '0',
`title` varchar(250) NOT NULL default '',
`dateline` int(10) unsigned NOT NULL default '0',
`pagetext` mediumtext NOT NULL,
`allowsmilie` smallint(6) NOT NULL default '0',
`showsignature` smallint(6) NOT NULL default '0',
`ipaddress` varchar(15) NOT NULL default '',
`iconid` smallint(5) unsigned NOT NULL default '0',
`visible` smallint(6) NOT NULL default '0',
`attach` smallint(5) unsigned NOT NULL default '0',
PRIMARY KEY (`postid`),
KEY `iconid` (`iconid`),
KEY `userid` (`userid`),
KEY `threadid` (`threadid`,`userid`)
) TYPE=MyISAM AUTO_INCREMENT=2 ;
What I'd like to do is an update.php script to run off the server and grab
the data from the first forum to the new one. There are some information
on the old forum that I won't need anymore (ie: link, linkname, etc...).
My script still will have to come up with unprovided information to fill
in (ie: ipaddress, visible...)
I'd like to know how to do it, and learn. Do you have good tutorials to
learn? Or could you show me how to do this?
Thanks,
Charles.
- Previous message: Nikolai Chuvakhin: "Re: Number question"
- Next in thread: steve: "Re: [ help ] - Advanced String Manipulation"
- Reply: steve: "Re: [ help ] - Advanced String Manipulation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|