par
zizou59 » 05 sept. 2006, 23:44
oui mais la deuxieme sert a afficher la deuxième equipe
si tu veu dans la table ya 2 match avec le meme n-tout+n-match
exemple (B,score=0,1,1) et (A,score=2,1,1) etc...
-- --------------------------------------------------------
--
-- Structure de la table `gst_match`
--
CREATE TABLE `gst_match` (
`numero` int(11) NOT NULL,
`equipe` text NOT NULL,
`but_p` int(3) NOT NULL default '0',
`but_c` int(3) NOT NULL default '0',
`gp` char(1) NOT NULL default '',
`n_match` int(3) NOT NULL default '0',
`n_tour` int(3) NOT NULL default '0',
`date` date NOT NULL default '0000-00-00',
`heure` time NOT NULL default '00:00:00',
`com` text NOT NULL,
`N_journee` int(3) NOT NULL default '0',
`pt` int(3) NOT NULL default '0',
`cpt` int(3) NOT NULL default '0',
PRIMARY KEY (`numero`)
) TYPE=MyISAM AUTO_INCREMENT=85 ;
--
-- Contenu de la table `gst_match`
--
INSERT INTO `gst_match` (`numero`, `equipe`, `but_p`, `but_c`, `gp`, `n_match`, `n_tour`, `date`, `heure`, `com`, `N_journee`, `pt`, `cpt`) VALUES (79, 'UXEM A.AM.J. 3', 1, 0, 'g', 0, 1, '0000-00-00', '00:00:00', 'rien', 0, 4, 4),
(80, 'TETEGHEM US 3', 0, 1, 'p', 1, 1, '0000-00-00', '00:00:00', 'rien', 0, 1, 1),
(81, 'UXEM A.AM.J. 3', 11, 0, 'g', 0, 81, '0000-00-00', '00:00:00', 'rien', 0, 4, 8),
(82, 'TETEGHEM US 3', 0, 11, 'p', 1, 81, '0000-00-00', '00:00:00', 'rien', 0, 1, 2),
(83, 'UXEM A.AM.J. 3', 3, 0, 'g', 0, 83, '0000-00-00', '00:00:00', 'rien', 0, 4, 12),
(84, 'TETEGHEM US 3', 0, 3, 'p', 1, 83, '0000-00-00', '00:00:00', 'rien', 0, 1, 3);
oui mais la deuxieme sert a afficher la deuxième equipe
si tu veu dans la table ya 2 match avec le meme n-tout+n-match
exemple (B,score=0,1,1) et (A,score=2,1,1) etc...
[quote]-- --------------------------------------------------------
--
-- Structure de la table `gst_match`
--
CREATE TABLE `gst_match` (
`numero` int(11) NOT NULL,
`equipe` text NOT NULL,
`but_p` int(3) NOT NULL default '0',
`but_c` int(3) NOT NULL default '0',
`gp` char(1) NOT NULL default '',
`n_match` int(3) NOT NULL default '0',
`n_tour` int(3) NOT NULL default '0',
`date` date NOT NULL default '0000-00-00',
`heure` time NOT NULL default '00:00:00',
`com` text NOT NULL,
`N_journee` int(3) NOT NULL default '0',
`pt` int(3) NOT NULL default '0',
`cpt` int(3) NOT NULL default '0',
PRIMARY KEY (`numero`)
) TYPE=MyISAM AUTO_INCREMENT=85 ;
--
-- Contenu de la table `gst_match`
--
INSERT INTO `gst_match` (`numero`, `equipe`, `but_p`, `but_c`, `gp`, `n_match`, `n_tour`, `date`, `heure`, `com`, `N_journee`, `pt`, `cpt`) VALUES (79, 'UXEM A.AM.J. 3', 1, 0, 'g', 0, 1, '0000-00-00', '00:00:00', 'rien', 0, 4, 4),
(80, 'TETEGHEM US 3', 0, 1, 'p', 1, 1, '0000-00-00', '00:00:00', 'rien', 0, 1, 1),
(81, 'UXEM A.AM.J. 3', 11, 0, 'g', 0, 81, '0000-00-00', '00:00:00', 'rien', 0, 4, 8),
(82, 'TETEGHEM US 3', 0, 11, 'p', 1, 81, '0000-00-00', '00:00:00', 'rien', 0, 1, 2),
(83, 'UXEM A.AM.J. 3', 3, 0, 'g', 0, 83, '0000-00-00', '00:00:00', 'rien', 0, 4, 12),
(84, 'TETEGHEM US 3', 0, 3, 'p', 1, 83, '0000-00-00', '00:00:00', 'rien', 0, 1, 3);
[/quote]