RL
RT
RCF
Reset
ST
Up Teams
TEST
thjis is a test
Array
(
[total_goals] => 421
[total_home_goals] => 200
[total_away_goals] => 221
)
SELECT
events.id,events.time,events.home_team,events.away_team,events.status,events.statistics,events.league,events.has_agg,events.agg_event,
stats.home_goals,stats.home_goals_et,stats.home_goals_pen,
events.time_45,events.time_90,
stats.away_goals,stats.away_goals_et,stats.away_goals_pen,
stats.time as game_time,
events.txt_file_updated,events.round,
events.home_full_stats,events.away_full_stats,
events.group_id,
ht.name as home_name,at.name as away_name,
ht.team_data_updated as home_updated,at.team_data_updated as away_updated,
ht.logo as home_logo,at.logo as away_logo,leagues.international,
leagues.name as league_name,leagues.name_off as lno,
leagues.id as league_id,leagues.type,leagues.abv as league_abv ,leagues.list_order,
leagues.fixtures_updated,
country.name as country_name,country.id as country_id,
league_groups.name as group_desc,
seasons.reg_fixtures,seasons.fixtures
FROM events
LEFT JOIN statistics_v2 as stats
ON stats.event_id=events.id
LEFT JOIN seasons
ON seasons.id=events.season
LEFT JOIN ( SELECT fixtures_updated,name,name_off,id,type,abv,list_order,country,active,international FROM leagues ) leagues
ON leagues.id=events.league
LEFT JOIN league_groups
ON league_groups.id=events.group_id
INNER JOIN teams ht
ON ht.id=events.home_team
INNER JOIN teams at
ON at.id=events.away_team
INNER JOIN country
ON leagues.country=country.id
WHERE (( events.time BETWEEN 1770854400 AND 1773014399 ) OR ( events.status='1H' OR events.status='HT' OR events.status='2H' )) AND events.status!='PST' AND events.status!='FT' AND events.status!='AET' AND events.status!='PEN' AND events.league='132' AND leagues.active='yes' AND stats.type='full' AND events.season='400' ORDER BY events.time ASC
row counr = 13
No more live evens Showing all! ( Refresh to see all events )
For some teams we don't have league data!.. Sorry
top results = 6
SELECT
events.id,events.time,events.home_team,events.away_team,events.status,events.statistics,events.league,events.has_agg,events.agg_event,
stats.home_goals,stats.home_goals_et,stats.home_goals_pen,
events.time_45,events.time_90,
stats.away_goals,stats.away_goals_et,stats.away_goals_pen,
stats.time as game_time,
stats.homeCorners,stats.homeYellowCards,stats.homeRedCards,
stats.awayCorners,stats.awayYellowCards,stats.awayRedCards,
stats.home_goals_halftime,stats.away_goals_halftime,
stats.homePossession,stats.awayPossession,
events.txt_file_updated,events.round,
events.home_full_stats,events.away_full_stats,
events.group_id,
ht.name as home_name,at.name as away_name,
ht.team_data_updated as home_updated,at.team_data_updated as away_updated,
ht.logo as home_logo,at.logo as away_logo,leagues.international,
leagues.name as league_name,leagues.name_off as lno,
leagues.id as league_id,leagues.type,leagues.abv as league_abv ,leagues.list_order,
leagues.fixtures_updated,
country.name as country_name,country.id as country_id,
league_groups.name as group_desc,
seasons.reg_fixtures,seasons.fixtures,
stats.homeTotalShots,stats.awayTotalShots,
stats.homeShotsOn,stats.awayShotsOn,
stats.homeFouls,stats.awayFouls,
hts.ppg as home_ppg,ats.ppg as away_ppg
FROM events
LEFT JOIN statistics_v2 as stats
ON stats.event_id=events.id
LEFT JOIN seasons
ON seasons.id=events.season
LEFT JOIN ( SELECT fixtures_updated,name,name_off,id,type,abv,list_order,country,active,international FROM leagues ) leagues
ON leagues.id=events.league
LEFT JOIN league_groups
ON league_groups.id=events.group_id
LEFT JOIN teams ht
ON ht.id=events.home_team
LEFT JOIN teams at
ON at.id=events.away_team
LEFT JOIN new_team_stats_v2 hts
ON hts.team=events.home_team AND hts.league=leagues.id AND hts.location='All' AND hts.duration='All' AND hts.season=seasons.id
LEFT JOIN new_team_stats_v2 ats
ON ats.team=events.away_team AND ats.league=leagues.id AND ats.location='All' AND ats.duration='All' AND ats.season=seasons.id
LEFT JOIN country
ON leagues.country=country.id
WHERE events.time BETWEEN 1769385600 AND 1770940799 AND seasons.current='1' AND events.league='132' AND events.status IN ('FT','AET','PEN') AND leagues.active='yes' AND stats.type='full' ORDER BY events.time DESC
12:00 26th 01 2026 - 12:00 9th 02 2026
result count = 22
Mons Calpe
0
0
2 - 1
0
0
Europa Point
Mons Calpe
0
0
2 - 1
0
0
Europa Point
Mons Calpe
0
0
2 - 1
0
0
Europa Point
Mons Calpe
0
0
2 - 1
0
0
Europa Point
Manchester 62
0
0
0 - 10
0
0
Lincoln Red Imps FC
Manchester 62
0
0
0 - 10
0
0
Lincoln Red Imps FC
Manchester 62
0
0
0 - 10
0
0
Lincoln Red Imps FC
Manchester 62
0
0
0 - 10
0
0
Lincoln Red Imps FC
Hound Dogs
0
0
1 - 1
0
0
Glacis United
Hound Dogs
0
0
1 - 1
0
0
Glacis United
Lions Gibraltar
0
0
0 - 4
0
0
St Joseph S Fc
Lions Gibraltar
0
0
0 - 4
0
0
St Joseph S Fc
Lions Gibraltar
0
0
0 - 4
0
0
St Joseph S Fc
Lions Gibraltar
0
0
0 - 4
0
0
St Joseph S Fc
College 1975
0
0
0 - 1
0
0
Europa
College 1975
0
0
0 - 1
0
0
Europa
College 1975
0
0
0 - 1
0
0
Europa
College 1975
0
0
0 - 1
0
0
Europa
Europa
0
0
5 - 1
0
0
Glacis United
Europa
0
0
5 - 1
0
0
Glacis United
row counbt => 132
tablerow counbt => 0Array
(
)
SELECT group_id,MAX(mycount)
FROM (
SELECT id,group_id, COUNT(group_id) AS mycount
FROM events WHERE
events.league='132' AND events.season='400' GROUP BY group_id ) events
THSI NEEDDSSSSS SORTING FOR NEW LEAGUES WITH NO DATA <--------------------
Array
(
[0] => Array
(
[group_id] => 636
[MAX(mycount)] => 132
)
)
dd count = 1
Array
(
[636] => Array
(
[0] => Array
(
[position] => 1
[id] => overall
[played] =>
[win] =>
[draw] =>
[loss] =>
[points] =>
[for] =>
[against] =>
[goaldifference] =>
[over25] =>
[scored2plus] =>
[btts] =>
[corners] =>
[corners_for] =>
[corners_against] =>
[cards] =>
[cards_for] =>
[cards_against] =>
[goal_counts] =>
[corner_counts] =>
[card_counts] =>
[goal_overs] =>
[corner_overs] =>
[card_overs] =>
[no_stats] =>
[form] =>
)
[1] => Array
(
[position] => 2
[id] => home
[played] =>
[win] =>
[draw] =>
[loss] =>
[points] =>
[for] =>
[against] =>
[goaldifference] =>
[over25] =>
[scored2plus] =>
[btts] =>
[corners] =>
[corners_for] =>
[corners_against] =>
[cards] =>
[cards_for] =>
[cards_against] =>
[goal_counts] =>
[corner_counts] =>
[card_counts] =>
[goal_overs] =>
[corner_overs] =>
[card_overs] =>
[no_stats] =>
[form] =>
)
[2] => Array
(
[position] => 3
[id] => away
[played] =>
[win] =>
[draw] =>
[loss] =>
[points] =>
[for] =>
[against] =>
[goaldifference] =>
[over25] =>
[scored2plus] =>
[btts] =>
[corners] =>
[corners_for] =>
[corners_against] =>
[cards] =>
[cards_for] =>
[cards_against] =>
[goal_counts] =>
[corner_counts] =>
[card_counts] =>
[goal_overs] =>
[corner_overs] =>
[card_overs] =>
[no_stats] =>
[form] =>
)
)
)
finshed events = 117
team count = 1
636
We currently don't have offical ordering of this league, it's currenlty being ordered by (Points, Goal Difference, Goals Scored)
636
We currently don't have offical ordering of this league, it's currenlty being ordered by (Points, Goal Difference, Goals Scored)
636
We currently don't have offical ordering of this league, it's currenlty being ordered by (Points, Goal Difference, Goals Scored)
Scores
Table data
return_data