Jump to content


This topic is now archived and is closed to further replies.


Mysql/Php returning from two tables

Recommended Posts

I have two tables that I want to pull from:

players (has players_id, position_id, First name, last name, mlbteam)
playerstats (has a list of all stats....stat_id, player_id, year, ab, hits, hr, rbi....etc)

Hitters (Catchers, second base, thirdbse, firstbase, ss, of) and Pitchers (Starting and Relief) all have different stats

I've got the "Leaders Page" done, but I'm trying to build individual player pages where each players stats will show by year. For some reason, all of the stats on these pages are showing as 0...

[a href=\"http://www.fantasybaseballresearch.com/baseball/2bleaders.php\" target=\"_blank\"]Here's the leaders page:[/a]

[a href=\"http://www.fantasybaseballresearch.com/baseball/players.php?player_id=404\" target=\"_blank\"]Hers a player page[/a]

Share this post

Link to post
Share on other sites
Post the offending query that are resulting in the unexpected output.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.