Pulling from database - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Webmaster Tech > Programming > PHP Development

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 04-20-2010, 11:23 PM   #1 (permalink)
Junior Member
 
Join Date: May 2006
Posts: 14
Default Pulling from database

Please help point me in the right direction before I go crazy :! FYI...I'm using php and mysql

I have a table of teams organized by bracket. So I pull all teams from bracket 5:

Jaguars
Monkeys
Snakes
Parrots

Then I have a list of games
homeTeam homeScore awayTeam awayScore
Jaguars 5 Snakes 9
Snakes 2 Parrots 1

What is the best way to pull all the games for the right bracket and calculate points...3 for a win, 0 for a loss?

Should I pull all teams then for each team pull games where they are home or away team? Or should I put it all into 1 query?

Any guidance is very, very helpful!!
sepple is offline   Reply With Quote
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 07:49 PM.


Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums
Web Hosting | Chicago Web Hosting | Web Hosting