通过网站导入MySQL特定数据库

时间:2013-11-26 07:39:59

标签: php mysql

我是mySQL&的新手。我正在使用IPB(invision power board:pay not not nulled)。

我很困惑如何在创建帐户时通过我的网站将某些内容实现到mysql中。我很抱歉如果我在这个问题上不够具体,我就不知道我将要离开的东西,因为我是这个部分的新手。

在我的论坛上创建新帐户的人;我想将新帐户添加到MySQL数据库,特别是game_users表。我希望这个INSERT声明可以为成功的注册商运行。

    INSERT INTO `game_users` (`id`, `username`, `displayName`, `previousname`, `lastChanged`, `password`, `email`, `reg_ip`, `reg_date`, `last_ip`, `last_online`, `picture`, `rights`, `playTime`, `forum`, `gender`, `donator`, `donatorTill`, `mute`, `muteTill`, `banned`, `online`, `sof_points`, `location`, `hitpoints`, `inventory_items`, `inventory_amount`, `equipment_items`, `equipment_amount`, `bank_items`, `bank_amount`, `bank_tabs`, `skills_level`, `skills_experience`, `looks`, `colours`, `points`, `friends`, `ignores`, `quest_points`, `music`, `prayer_points`, `pouch`, `run_energy`, `magic_book`, `prayer_book`, `familiar`, `bob_items`, `bob_amount`, `quest_states`, `quest_progress`) VALUES

(1, 'NAME', 'NAME', 'NAME', '0000-00-00 00:00:00', 'PASS', 'EMAIL', '::1', '2013-07-27 19:04:07', '', '2013-11-20 21:43:29', 'http://frostblades.org/m=avatar-rs/chat.png', 0, '', 0, 0, 0, '0', 0, '0', 0, 0, 0, '3121,3122,0', 100, '-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1', '-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1', '-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1', '-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1', '', '', '', '1,1,1,10,1,1,1,1,1,1,1,1,1,1,1,3,1,1,1,1,1,1,1,1,1', '1,1,1,1184,1,1,1,1,1,1,1,1,1,1,1,250,1,1,1,1,1,1,1,1,1', '3,14,18,26,34,38,42', '3,16,16,0,0,0,0,0,0,0', '0,0,0,0,0,0,0,0', '', '', 0, '', 100, 0, 100, 0, 0, -1, '', '', '', '');

正在填写的用户名&设置显示名称和以前的名字作为他们刚刚注册的论坛上的用户名(将在游戏中设置)。

我要问的一点:当有人在我的论坛上创建一个帐户时,如何将上面的代码实现到MySql中。

如果没有人知道怎么做,那么任何人都知道我可以在我的网站上制作的自定义页面,他们可以输入他们选择的用户名,显示名称和密码&它会在提供的代码中设置字段吗?

0 个答案:

没有答案