Versio

Stand weergeven met data uit verschillende tabellen.

Overzicht Reageren

Mitch

Mitch

05/10/2005 11:08:00
Quote Anchor link
Allereest even de gebruikte tabellen:
Quote:
CREATE TABLE `competitions` (
`c_id` int(11) not null auto_increment primary key,
`c_start_date` int(11) not null default 0,
`c_end_date` int(11) not null default 0
) TYPE=MyISAM;

CREATE TABLE `competitors` (
`cp_id` int(11) not null auto_increment primary key,
`cp_first_name` varchar(25) not null default '',
`cp_last_name` varchar(30) not null default ''
) TYPE=MyISAM;

CREATE TABLE `matches` (
`m_id` int(11) not null auto_increment primary key,
`m_home_player` int(11) not null default 0,
`m_home_score` int(1) not null default 0,
`m_away_player` int(11) not null default 0,
`m_away_score` int(1) not null default 0,
`m_date` int(11) not null default 0,
`m_c_id` int(11) not null default 0
) TYPE=MyISAM;


Ik wil dus nu een lijstje maken op deze manier:
plaatsnr - cp_first_name - score ( waarbij plaatsnr door het script bepaald wordt, en score ook een procesgegeven is. )
Maar ik zie niet hoe ik de juiste score kan krijgen :-P
En speler kan tenslotte home of away zijn, dus de som van zo'n kolom wordt ook moeilijk.
 
PHP hulp

PHP hulp

25/05/2012 18:37:44
Gesponsorde koppelingen:
BHosted Hosting al vanaf € 1,- per maand

Controleer nu gratis jouw domeinnaam:

  
 
Er zijn nog geen reacties op dit bericht.



Overzicht Reageren