Seite 1 von 2

Fußball Tippspiel - SQL Error : 1054 Unknown column ...

Verfasst: 14.11.2005 19:03
von spritzpistole
Hi, also ich habe folgendes Problem, ich habe SQL per Hand ausgeführt und danach ausversehen nochmal mit der db_install dürfte ja soweit kein Problem sein, weil ein Error kam und jetzt kommt diese Fehlermeldung:

Datenbank-Fehler

DEBUG MODE

SQL Error : 1054 Unknown column 'tipp_lastpos' in 'field list'

SELECT user_id, username, tipp_punkte, tipp_treffer, tipp_getippt , tipp_lastpos FROM phpbb_users WHERE tipp_spieltagtipps = 1 ORDER BY tipp_punkte DESC,tipp_treffer DESC LIMIT 0,10

Line : 119
File : bundesliga.php
Kann mir da jemand helfen?

Verfasst: 14.11.2005 23:05
von spritzpistole
Da es schon auf zweiter Seite ist ... und ich nicht denke, dass es so schwer ist, weil ich selbst mal das problem hatte, aber net mehr weiß wie ich es gelöst habe.

Würd mich Hilfe freuen ;)

Eure pistole

Verfasst: 15.11.2005 13:40
von plACEbo
bitte führe folgenden SQL-Befehl in phpMyAdmin aus:

Code: Alles auswählen

ALTER TABLE `phpbb_users` ADD `tipp_last_pos` INT(3) NOT NULL ;
Du hast beim Update nicht die DB-Updates vollzogen. Kann sein, dass noch mehr davon nötig sind. Besser wäre es ausserdem im Entwicklungsforum dein Problem zu behandeln.

mfg

Verfasst: 15.11.2005 13:50
von spritzpistole
SQL-Befehl :

ALTER TABLE `phpbb_users` ADD `tipp_last_pos` INT( 3 ) NOT NULL

MySQL meldet:

#1060 - Duplicate column name 'tipp_last_pos'
Das ist ja das komische ... ich habe das Update gemacht :o

Verfasst: 15.11.2005 13:59
von plACEbo
da gibt es wohl eine kleine Inkonsitenz ind den Column-Bezeichnungen.
probier dieses:

Code: Alles auswählen

ALTER TABLE `phpbb_users` ADD `tipp_lastpos` INT(3) NOT NULL ;
mfg

Verfasst: 15.11.2005 14:02
von spritzpistole
http://funsofa.de/bundesliga.php
Hat das was mit der css zutun?

Verfasst: 15.11.2005 14:09
von plACEbo
Hast du die BundesligaMannschaften.sql in phpMyAdmin ausgeführt? :

Code: Alles auswählen

INSERT INTO `tippspiel_tabelle` VALUES (1, 'Bayern Muenchen', 0, 0, 0, 0, 0, 0, 0, 0, 0, 'http://www.fcbayern.de', 'Bayern1', '');
INSERT INTO `tippspiel_tabelle` VALUES (2, 'FC Schalke 04', 0, 0, 0, 0, 0, 0, 0, 0, 0, 'http://www.schalke04.de', 'Schalke', '');
INSERT INTO `tippspiel_tabelle` VALUES (3, 'VfB Stuttgart', 0, 0, 0, 0, 0, 0, 0, 0, 0, 'http://www.vfb-stuttgart.de', 'VFB', '');
INSERT INTO `tippspiel_tabelle` VALUES (4, 'Hertha BSC', 0, 0, 0, 0, 0, 0, 0, 0, 0, 'http://www.herthabsc.de', 'Hertha', '');
INSERT INTO `tippspiel_tabelle` VALUES (5, 'Werder Bremen', 0, 0, 0, 0, 0, 0, 0, 0, 0, 'http://www.werder-online.de', 'Bremen', '');
INSERT INTO `tippspiel_tabelle` VALUES (6, 'Hamburger SV', 0, 0, 0, 0, 0, 0, 0, 0, 0, 'http://www.hsv.de', 'HSV', '');
INSERT INTO `tippspiel_tabelle` VALUES (7, 'Bayer Leverkusen', 0, 0, 0, 0, 0, 0, 0, 0, 0, 'http://www.bayer04.de', 'Bayer 04', '');
INSERT INTO `tippspiel_tabelle` VALUES (8, 'Borussia Dortmund', 0, 0, 0, 0, 0, 0, 0, 0, 0, 'http://www.borussia-dortmund.de', 'BVB', '');
INSERT INTO `tippspiel_tabelle` VALUES (9, 'VfL Wolfsburg', 0, 0, 0, 0, 0, 0, 0, 0, 0, 'http://www.vfl-wolfsburg.de', 'Wolfsburg', '');
INSERT INTO `tippspiel_tabelle` VALUES (10, '1. FC Kaiserslautern', 0, 0, 0, 0, 0, 0, 0, 0, 0, 'http://www.FCK.de', 'Lautern', '');
INSERT INTO `tippspiel_tabelle` VALUES (11, 'Arminia Bielefeld', 0, 0, 0, 0, 0, 0, 0, 0, 0, 'http://www.arminia-bielefeld.de', 'Arminia', '');
INSERT INTO `tippspiel_tabelle` VALUES (12, 'Hannover 96', 0, 0, 0, 0, 0, 0, 0, 0, 0, 'http://www.hannover96.de', 'Hannover', '');
INSERT INTO `tippspiel_tabelle` VALUES (13, '1. FC Nuernberg', 0, 0, 0, 0, 0, 0, 0, 0, 0, 'http://www.fcn.de', '1.FCN', '1');
INSERT INTO `tippspiel_tabelle` VALUES (14, 'FSV Mainz 05', 0, 0, 0, 0, 0, 0, 0, 0, 0, 'http://www.mainz05.de', 'Mainz', '');
INSERT INTO `tippspiel_tabelle` VALUES (15, 'Bor. Mgladbach', 0, 0, 0, 0, 0, 0, 0, 0, 0, 'http://borussia.de', 'Gladbach', '');
INSERT INTO `tippspiel_tabelle` VALUES (16, '1. FC Koeln', 0, 0, 0, 0, 0, 0, 0, 0, 0, 'http://www.fc-koeln.de', 'Koeln', '');
INSERT INTO `tippspiel_tabelle` VALUES (17, 'MSV Duisburg', 0, 0, 0, 0, 0, 0, 0, 0, 0, 'http://www.msv-duisburg.de', 'MSV', '');
INSERT INTO `tippspiel_tabelle` VALUES (18, 'Eintracht Frankfurt', 0, 0, 0, 0, 0, 0, 0, 0, 0, 'http://www.eintracht.de', 'Frankfurt', '');
Deine .css sieht okay aus.

mfg

Verfasst: 15.11.2005 14:15
von plACEbo
Ausserdem:
Öffne:
bundesliga.tpl
Suche:

Code: Alles auswählen

<td class="{tabelle_block.C_TABELLE}" align="center" width="5%"><img src="templates/subSilver/images/tipp_{tabelle_block.TEAMTENDENZ}.gif"/></td>
Ersetzte mit:

Code: Alles auswählen

<td class="{tabelle_block.C_TABELLE}" align="center" width="5%"><img src="templates/DarkBlue/images/tipp_{tabelle_block.TEAMTENDENZ}.gif"/></td>

Verfasst: 15.11.2005 14:16
von plACEbo
Verlinke bitte mal deine DarkBlue.css als DarkBlue.txt

mfg

Verfasst: 15.11.2005 14:16
von spritzpistole
plACEbo hat geschrieben:Ausserdem:
Öffne:
bundesliga.tpl
Suche:

Code: Alles auswählen

<td class="{tabelle_block.C_TABELLE}" align="center" width="5%"><img src="templates/subSilver/images/tipp_{tabelle_block.TEAMTENDENZ}.gif"/></td>
Ersetzte mit:

Code: Alles auswählen

<td class="{tabelle_block.C_TABELLE}" align="center" width="5%"><img src="templates/DarkBlue/images/tipp_{tabelle_block.TEAMTENDENZ}.gif"/></td>
Das hab ich gemacht und mit den Mannschaften auch!

Nur irgendwie sieht das recht merkwürdig aus.