MLB — active roster hitters
Every position player on each team’s active roster (same source as baseball.php / homerun.php), with regular-season H / HR / SB for season 2026 from the MLB Stats API (splits summed for trades). Rows are saved to MySQL (mlb_hitter_season_stat). This page reads that database snapshot; it is refreshed from MLB once per day at 3:00 a.m. US Central via the scheduled job baseball/baseball-players-cron.php (not on each page load). Optional: ?season=2026. File cache TTL per player ≈ 4h.
Create the table with mysql_schema_baseball_players.sql. On the server, run the cron script daily at 3:00 a.m. America/Chicago (see comments in baseball-players-cron.php). If the table has no rows for the selected season yet, the first visit to this page will run one sync to seed the data. Player chart: add ?player=first-last (e.g. ?player=aaron-judge) or click a name in the table.
Database unavailable or schema missing — showing live API data only (no DB writes): SQLSTATE[28000] [1045] Access denied for user 'sitemine_mikethemike_usr'@'localhost' (using password: YES)
Showing live API only (no DB writes).
390 players · 2 stat rows missing (shown as —).
Some players could not load season stats. Sync again later; successful responses are cached on disk and stored in the database when configured.