Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie
PHP

Przemophp łączenie dwóch baz danych

PHP

  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Qmi

    Wszechpomocny

  • Zbanowany

Reputacja: 0
Nowy

  • Postów:373
  • GG:
Offline

Napisano 16.10.2011 21:31

Witam, na wstępie piszę abyście mnie nie odsyłali do innych tematów bo ich po prostu nie ogarniam i potrzebuje kogoś kto mi to porządnie wytłumaczy, już pisałem z dwiema osobami co się mniej więcej na tym znają ale niestety sobie nie poradzili także liczę, że tutaj znajdę kogoś kto podoła temu zadaniu.


A więc tak, chce przenieść sobie użytkowników z jednego forum na drugie np. na pierwszym forum mam 100 userów a na 2-gim 50 i chce mieć 150, czyli połączyć te bazy danych (TYLKO USERÓW)

Mówili mi żeby robić zapytania do sql ale zazwyczaj wyskakiwał ten błąd

#1136 - Column count doesn't match value count at row 1



Tutaj wysyłam kody użytkowników z mojego forum i z tego drugiego.

Moje forum (forum na którym chce mieć wszystkich userów)

INSERT INTO phpbb_users VALUES('291', '1', 'MasterWH', '0bde667aa88e8832b61bf68c0d4e34a4', '1315133640', '0', '1315133508', '1315133508', '0', '2', '1.00', '2', 'polish', '0', '0', '0', '0', '1', '1', '1', '0', '1', '1', '1', '1', '1', '1', '0', '1', '1', '0', '', '0', '[email protected]', '', '', '', '', '', '', '', '', '', '', '', '', '', '999999', '0', '', '', '0', '', '0', '0', '', '', '1', '1', '0', '1', '0', '1', '0', '0', '0', NULL, NULL, NULL, '1', 'b22ae7af', '1', '132', '1', '1315133508', '1315133631', '0', '0', '0', '0');
INSERT INTO phpbb_users VALUES('292', '1', 'play', '06b2af75179fb94be097af182a442a4a', '1315134909', '0', '1315134386', '1315134386', '0', '0', '1.00', '6', 'polish', '0', '0', '0', '0', '1', '1', '1', '0', '1', '1', '1', '1', '1', '1', '0', '1', '1', '0', '', '0', '[email protected]', '', '', '', '', '', '', '', '', '', '', '', '', '', '999999', '0', '', '', '0', '', '0', '0', '', '', '1', '1', '0', '1', '0', '1', '0', '0', '0', NULL, NULL, NULL, '1', '4fba8188', '1', '523', '1', '1315134386', '1315134391', '0', '0', '0', '0');
INSERT INTO phpbb_users VALUES('293', '1', 'TosieK98', '828e096fef42d94858dd49b27ab903f3', '1315143774', '4', '1315143515', '1315143515', '0', '0', '1.00', '8', 'polish', '0', '0', '0', '0', '1', '1', '1', '0', '1', '1', '1', '1', '1', '1', '0', '1', '1', '0', '', '0', '[email protected]', '', '', '', '', '', '', '', '', '', '', '', '', '', '10427', '2012', '', '', '0', '', '0', '0', '', '', '1', '1', '1', '1', '0', '1', '0', '0', '0', NULL, NULL, NULL, '1', '4dfd143c', '1', '259', '1', '1315143515', '1315143534', '0', '0', '0', '0');



Forum z którego chce wziąć userów na 2-gie forum

INSERT INTO phpbb_users VALUES('100', '1', 'Byku_Pro', '93429df6a4889febb2504416e00f32cc', '1314646978', '0', '1314646978', '1314646978', '0', '0', '1.00', '2', 'polish', '0', '0', '0', '0', '1', '1', '1', '0', '1', '1', '1', '1', '1', '1', '0', '1', '1', '0', '', '0', '[email protected]', '', 'http://CS.pl', 'Lubiana', '', '1', 'Szefuuu ;D', 'f4752884c5', '', '', '', '', '', 'Sport', '', '', '9812', '2011', 'Sam To Pcham To', '', '0', '', '0', '0', '', '', '1', '1', '1', '1', '0', '1', '0', '0', '0', NULL, NULL, NULL, '1', '58c71e82', '1', '0', '1', '1314646978', '1314646990', '0', '0', '0');
INSERT INTO phpbb_users VALUES('101', '1', 'Aston', '2f07e9de09e0fb707c21f898e0fd1c38', '1314780422', '0', '1314737192', '1314737192', '0', '1', '1.00', '2', 'polish', '0', '0', '0', '0', '1', '1', '1', '0', '1', '1', '1', '1', '1', '1', '0', '1', '1', '0', '', '0', '[email protected]', '', '', 'Puławy', '', '1', '', '', '', '', '', '', '', '', '', '', '999999', '0', '', '', '0', '', '0', '0', '', '', '1', '1', '1', '1', '0', '1', '0', '0', '0', NULL, NULL, NULL, '1', '52b1ef68', '1', '0', '2', '1314780422', '1314737216', '0', '0', '0');
INSERT INTO phpbb_users VALUES('102', '1', '`julanfajt.', '0bde667aa88e8832b61bf68c0d4e34a4', '1314781245', '0', '1314781245', '1314781245', '0', '1', '1.00', '2', 'polish', '0', '0', '0', '0', '1', '1', '1', '0', '1', '1', '1', '1', '1', '1', '0', '1', '1', '0', '', '0', '[email protected]', '', '', 'wawa', '', '1', '', '', '', '', '', '', '', '', '', '', '999999', '0', '', '', '0', '', '0', '0', '', '', '1', '1', '1', '1', '0', '1', '0', '0', '0', NULL, NULL, NULL, '1', '5f311968', '1', '0', '1', '1314781245', '1314781305', '0', '0', '0');



I dalej nie mam pojęcia co zrobić kolega mi tam mówił że nad tymi tabelami INSERT INTO phpbb_users VALUES jest coś takiego

CREATE TABLE phpbb_users(
user_id mediumint(8) NOT NULL,
user_active tinyint(1) DEFAULT '1',
username varchar(25) NOT NULL,
user_password varchar(32) NOT NULL,
user_session_time int(11) NOT NULL,
user_session_page smallint(5) NOT NULL,
user_lastvisit int(11) NOT NULL,
user_regdate int(11) NOT NULL,
user_level tinyint(1),
user_posts mediumint(6) unsigned NOT NULL,
user_timezone decimal(5,2) DEFAULT '0.00' NOT NULL,
user_style tinyint(2) DEFAULT '1',
user_lang varchar(12) NOT NULL,
user_new_privmsg smallint(5) unsigned NOT NULL,
user_unread_privmsg smallint(5) unsigned NOT NULL,
user_last_privmsg int(11) NOT NULL,
user_emailtime int(11),
user_viewemail tinyint(1) DEFAULT '1',
user_viewaim tinyint(1) DEFAULT '1',
user_attachsig tinyint(1) DEFAULT '1',
user_allowhtml tinyint(1) DEFAULT '1',
user_allowbbcode tinyint(1) DEFAULT '1',
user_allowsmile tinyint(1) DEFAULT '1',
user_allowavatar tinyint(1) DEFAULT '1' NOT NULL,
user_allowsig tinyint(1) DEFAULT '1' NOT NULL,
user_allow_pm tinyint(1) DEFAULT '1' NOT NULL,
user_allow_viewonline tinyint(1) DEFAULT '1' NOT NULL,
user_notify tinyint(1) DEFAULT '1' NOT NULL,
user_notify_pm tinyint(1) DEFAULT '1' NOT NULL,
user_popup_pm tinyint(1) NOT NULL,
user_rank int(11),
user_avatar varchar(100),
user_avatar_type tinyint(1) NOT NULL,
user_email varchar(255),
user_icq varchar(15),
user_website varchar(255),
user_from varchar(64),


user_sig text,
user_sig_bbcode_uid char(10),
user_sig_image varchar(100) NOT NULL,
user_aim varchar(255),
user_yim varchar(255),
user_msnm varchar(255),
user_occ varchar(100),
user_interests varchar(255),
user_actkey varchar(32),
user_newpasswd varchar(32),
user_birthday int(6) DEFAULT '999999' NOT NULL,
user_next_birthday_greeting int(4) NOT NULL,
user_custom_rank varchar(100),
user_photo varchar(100),
user_photo_type tinyint(1) NOT NULL,
user_custom_color varchar(6),
user_badlogin smallint(2) NOT NULL,
user_blocktime int(11) NOT NULL,
user_block_by char(8),
disallow_forums varchar(254),
can_custom_ranks tinyint(1) DEFAULT '1' NOT NULL,
can_custom_color tinyint(1) DEFAULT '1' NOT NULL,
user_gender tinyint(1) NOT NULL,
can_topic_color tinyint(1) DEFAULT '1' NOT NULL,
user_notify_gg tinyint(1) NOT NULL,
allowpm tinyint(1) DEFAULT '1',
no_report_popup tinyint(1) NOT NULL,
refresh_report_popup tinyint(1) NOT NULL,
no_report_mail tinyint(1) NOT NULL,
user_avatar_width smallint(3),
user_avatar_height smallint(3),
special_rank mediumint(8) unsigned,
user_allow_helped tinyint(1) unsigned DEFAULT '1' NOT NULL,
user_ip char(8),
user_ip_login_check tinyint(1) DEFAULT '1' NOT NULL,
user_spend_time int(8) NOT NULL,
user_visit int(7) NOT NULL,
user_session_start int(11) NOT NULL,
read_tracking_last_update int(11) NOT NULL,
user_jr tinyint(1),
user_greet tinyint(1),
user_beers_src mediumint(8) unsigned NOT NULL,
user_beers_dst mediumint(8) unsigned NOT NULL,
PRIMARY KEY (user_id),
KEY user_session_time (user_session_time),
KEY user_level (user_level),
KEY user_lastvisit (user_lastvisit),
KEY user_active (user_active)
);


No i mówił mi że w obydwóch bazach ma być to samo no to ustawiłem i dalej nie wiem co zrobić, liczę na WAS!



r3x pomóż.

pomoże ktoś?

pomoże ktoś???





Również z jednym lub większą ilością słów kluczowych: PHP

Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych