Seite 173 von 265

Verfasst: 05.11.2006 12:32
von Patch
gib mal genau, diese sql anweisung

Code: Alles auswählen

select count(hilfe.vereine) as vereinsanzahl from (SELECT distinct heim as Vereine FROM tippspiel_usertips u, tippspiel_spieltage s WHERE u.userid = '2' and u.spielid = s.spielid and u.tabelle=1) hilfe, (SELECT distinct auswarts as Vereine FROM tippspiel_usertips u, tippspiel_spieltage s WHERE u.userid = '2' and u.spielid = s.spielid and u.tabelle=1) hilfe2 where hilfe.vereine=hilfe2.vereine

im mysqladmin unter sql ein. da müßte er dir eigentlich einen wert zurückgeben.
bei mir vereinsanzahl = 18

Datenbank-Fehler bei erweiterter Benutzerstatistik-Addon

Verfasst: 05.11.2006 12:48
von Yamatoo
Habe nach der Installation folgende Fehlermeldung:

SQL Error : 1054 Unknown column 'ts.heim' in 'on clause'

SQL Statement:

Code: Alles auswählen

 SELECT ts.heim, (
sum( bewertet ) + auspunkte
) AS punkte, Siege AS Sieg, (
Siege / ( Siege + Unentschieden + Niederlage ) *100
) AS Siegepro, Unentschieden, (
Unentschieden / ( Siege + Unentschieden + Niederlage ) *100
) AS Unentschiedenpro, Niederlage, (
Niederlage / ( Siege + Unentschieden + Niederlage ) *100
) AS Niederlagepro, (
Siege + Unentschieden + Niederlage
) AS Spieletipps
FROM tippspiel_spieltage ts, tippspiel_usertips ut
LEFT JOIN phpbb_users u ON ut.userid = u.user_id, (

SELECT ts.auswarts, sum( bewertet ) AS auspunkte
FROM tippspiel_spieltage ts, tippspiel_usertips ut
LEFT JOIN phpbb_users u ON ut.userid = u.user_id
WHERE ut.spielid = ts.spielid
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)hilfe
LEFT JOIN (

SELECT name AS team, ( 0 + fuer2 ) AS Siege
FROM tippspiel_tabelle, (

SELECT name AS auswarts, 0 AS fuer2
FROM tippspiel_tabelle
WHERE name NOT
IN (

SELECT ts.auswarts AS team
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
auswartstipp - heimtipp
) >0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)
UNION SELECT ts.auswarts AS team, (
count( auswartstipp - heimtipp )
) AS fuer2
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
auswartstipp - heimtipp
) >0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)hilfe
WHERE name NOT
IN (

SELECT ts.heim AS team
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
heimtipp - auswartstipp
) >0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.heim
)
AND name = hilfe.auswarts
UNION SELECT ts.heim AS team, (
(
count( heimtipp - auswartstipp )
) + fuer2
) AS Niderlage
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid, (

SELECT name AS auswarts, 0 AS fuer2
FROM tippspiel_tabelle
WHERE name NOT
IN (

SELECT ts.auswarts AS team
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
auswartstipp - heimtipp
) >0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)
UNION SELECT ts.auswarts AS team, (
count( auswartstipp - heimtipp )
) AS fuer2
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
auswartstipp - heimtipp
) >0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)hilfe
WHERE (
heimtipp - auswartstipp
) >0
AND ut.userid = '3'
AND ts.heim = hilfe.auswarts
AND ut.tabelle =1
GROUP BY team
)Siege ON ts.heim = Siege.team
LEFT JOIN (

SELECT name AS team, ( 0 + fuer2 ) AS Unentschieden
FROM tippspiel_tabelle, (

SELECT name AS auswarts, 0 AS fuer2
FROM tippspiel_tabelle
WHERE name NOT
IN (

SELECT ts.auswarts AS team
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
auswartstipp - heimtipp
) =0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)
UNION SELECT ts.auswarts AS team, (
count( auswartstipp - heimtipp )
) AS fuer2
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
auswartstipp - heimtipp
) =0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)hilfe
WHERE name NOT
IN (

SELECT ts.heim AS team
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
heimtipp - auswartstipp
) =0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.heim
)
AND name = hilfe.auswarts
UNION SELECT ts.heim AS team, (
(
count( heimtipp - auswartstipp )
) + fuer2
) AS Niderlage
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid, (

SELECT name AS auswarts, 0 AS fuer2
FROM tippspiel_tabelle
WHERE name NOT
IN (

SELECT ts.auswarts AS team
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
auswartstipp - heimtipp
) =0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)
UNION SELECT ts.auswarts AS team, (
count( auswartstipp - heimtipp )
) AS fuer2
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
auswartstipp - heimtipp
) =0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)hilfe
WHERE (
heimtipp - auswartstipp
) =0
AND ut.userid = '3'
AND ts.heim = hilfe.auswarts
AND ut.tabelle =1
GROUP BY team
)Unentschieden ON ts.heim = Unentschieden.team
LEFT JOIN (

SELECT name AS team, ( 0 + fuer2 ) AS Niederlage
FROM tippspiel_tabelle, (

SELECT name AS auswarts, 0 AS fuer2
FROM tippspiel_tabelle
WHERE name NOT
IN (

SELECT ts.auswarts AS team
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
auswartstipp - heimtipp
) <0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)
UNION SELECT ts.auswarts AS team, (
count( auswartstipp - heimtipp )
) AS fuer2
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
auswartstipp - heimtipp
) <0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)hilfe
WHERE name NOT
IN (

SELECT ts.heim AS team
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
heimtipp - auswartstipp
) <0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.heim
)
AND name = hilfe.auswarts
UNION SELECT ts.heim AS team, (
(
count( heimtipp - auswartstipp )
) + fuer2
) AS Niderlage
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid, (

SELECT name AS auswarts, 0 AS fuer2
FROM tippspiel_tabelle
WHERE name NOT
IN (

SELECT ts.auswarts AS team
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
auswartstipp - heimtipp
) <0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)
UNION SELECT ts.auswarts AS team, (
count( auswartstipp - heimtipp )
) AS fuer2
FROM tippspiel_usertips ut
LEFT JOIN tippspiel_spieltage ts ON ut.spielid = ts.spielid
WHERE (
auswartstipp - heimtipp
) <0
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.auswarts
)hilfe
WHERE (
heimtipp - auswartstipp
) <0
AND ut.userid = '3'
AND ts.heim = hilfe.auswarts
AND ut.tabelle =1
GROUP BY team
)Niederlage ON ts.heim = Niederlage.team
WHERE ut.spielid = ts.spielid
AND hilfe.auswarts = ts.heim
AND ut.userid = '3'
AND ut.tabelle =1
GROUP BY ts.heim
ORDER BY punkte DESC
LIMIT 0 , 30 
Line : 1354
File : userstatistik.php

Wer hat eine Idee? Ich habe mySQL 5.0.21 installiert!

Verfasst: 05.11.2006 13:58
von wolfman24
Patch hat geschrieben:gib mal genau, diese sql anweisung

Code: Alles auswählen

select count(hilfe.vereine) as vereinsanzahl from (SELECT distinct heim as Vereine FROM tippspiel_usertips u, tippspiel_spieltage s WHERE u.userid = '2' and u.spielid = s.spielid and u.tabelle=1) hilfe, (SELECT distinct auswarts as Vereine FROM tippspiel_usertips u, tippspiel_spieltage s WHERE u.userid = '2' and u.spielid = s.spielid and u.tabelle=1) hilfe2 where hilfe.vereine=hilfe2.vereine

im mysqladmin unter sql ein. da müßte er dir eigentlich einen wert zurückgeben.
bei mir vereinsanzahl = 18
Geht leider nicht, ergibt bei mir und mySQL 4.0.27

Code: Alles auswählen

 MySQL said: Documentation
#1064 - You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT distinct heim as Vereine FROM tippspiel_usertips u , tip 
@Yamatoo: Das deckt sich ja im Prinzip mit meinem Fehler.

Verfasst: 05.11.2006 17:18
von Patch
ich selbst hab die version MySQL - 4.1.14
kann mir aber nicht vorstellen, dass siebei der 5er ein paar funktion gestrichen hätten..

Verfasst: 05.11.2006 20:40
von ronson
Also ich habe 2 Fragen:

1. Weiß jemand ob funpic.de die cronjobs unterstützt ?

2. Ich benutze den Style justfooty mit folgender .css
original .css

und hab sie so geändert
geänderte .css


Leider ist aber trotzdem nichts in grün usw.

Kann mir jemand helfen ?
Danke im voraus !

Verfasst: 05.11.2006 22:55
von plACEbo
schau ob deine overall_header.tpl einen css-Teil hat und bau den Code dann dort ein. Vermutlich ist deine .css nicht aktiviert.

mfg

Verfasst: 06.11.2006 10:19
von cornell
Patch hat geschrieben:ist ja eigenartig. hast du alles richti eingebaut. kann di eventuell mal die userstatisitk.tpl und die userstatistik.php hier posten (gepackt per zip oder dergelichen) ich guck mir das dann mal an. aber sieht fast so aus, als ob du was vergessen hättest!? denn spielanzahl steht ja auch nicht mit da...
Hallo Patch,

hier sind die Dateien:

userstatistik.tpl
userstatistik.php

Gruß
Cornell

Verfasst: 06.11.2006 12:50
von Patch
also richtig eingebaut hast du es. hab die templates testweise mal bei mir eingebaut und er zeigte einen punkteschnitt an.
kann mir das aber auch nicht recht erklären...

am besten du schmeist diese tabelle aus deiner userstatistik.tpl wieder raus. dann wundert sich keiner


es ist aber auch verdammt schwierig auf fehlersuche zu gehen wenn bei mir alles funzt. selbst im query analyzer von meinem sql server funzt alles super... :cry:

Verfasst: 07.11.2006 15:50
von cYbercOsmOnauT
Eure processtipp.php ist voller echo's. Sieht für meine Augen nicht wirklich schön aus, wenn die Meldungen nicht in der üblichen phpBB Messagebox erscheinen. Ich hab mir (für einen Auftraggeber) die Mühe gemacht Eure ganzen Meldungen via message_die auszugeben. Meine veränderte Datei stelle ich Euch natürlich zur Verfügung falls ihr sie verwenden wollt.

http://www.cybercosmonaut.de/files/processtipp.zip

Viele Grüße,
Tekin

Verfasst: 07.11.2006 16:50
von Patch
HUGOOO hat geschrieben:Ich weiß nicht, ob andere auch das Problem haben, aber bei mir werden nach der Ergebnisseingabe keine Mails mehr versendet. (wer wie viele Punkte gemacht hat usw.)

Kann mir dabei jemand helfen?

bei mir kommen beim versenden der email fehler alá

Code: Alles auswählen

Fatal error: Cannot redeclare class emailer in /www/htdocs/..../forum/includes/emailer.php on line 28
ich vermut mal das hängt damit zusammen, oder ?