Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Utorok, 24. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  initial query question / join

phpMyEdit Configuration     initial query question / join
Odoslať novú tému   Odpovedať na tému    
 
mrscripto     Založený: 03.04.2004   Príspevky: 10  
Príspevok Zaslal: 2004-04-23 22:20
Návrat hore  Odpovedať s citátom     

After reading the manual on table joining I'm still a little confused...

My initial view is of my "teams" table, but I want to only show teams that are in the current season. So to do that I need to match the divid (Division ID) column in my "teams" table to the id column in the "divisions" table, where the seasonsid column from the "divisions" table matches the open season id in the "seasons" table.

My query would look like this, but I don't know how to set it up for PHPMyEdit.
"SELECT * FROM teams,divisions,seasons WHERE teams.division = divisions.id AND divisions.seasonid = seasons.id WHERE season.status == '1'"

Please help if you can.

I'm sure once I get one of these done I will understand how to do it properly.

Thanks!
MrScripto

 
mrscripto     Založený: 03.04.2004   Príspevky: 10  
Príspevok Zaslal: 2004-04-24 19:21
Návrat hore  Odpovedať s citátom     

Doug
I tried it but it did not work. Thanks for the response. Anyone else??

MrScripto

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov