Ver Mensaje Individual
  #3 (permalink)  
Antiguo 29/11/2010, 19:23
jorge1353
 
Fecha de Ingreso: noviembre-2010
Mensajes: 9
Antigüedad: 13 años, 6 meses
Puntos: 0
Respuesta: ayuda con registro

esta es la estructura para phpMyAdmin solo se puede registrar una persona
Código PHP:
DROP TABLE IF EXISTS `encuentros`;
CREATE TABLE `encuentros` (
  `
idint(11NOT NULL auto_increment,
  `
id_1int(11NOT NULL default '0',
  `
id_2int(11NOT NULL default '0',
  `
resultadovarchar(255NOT NULL default '',
  `
ganadorint(11NOT NULL default '-1',
  `
fechaint(11NOT NULL default '0',
  `
id_juegoint(11NOT NULL default '0',
  
PRIMARY KEY  (`id`)
ENGINE=MyISAM;


-- 
-- 
Estructura de tabla para la tabla `equipos`
-- 

DROP TABLE IF EXISTS `equipos`;
CREATE TABLE `equipos` (
  `
idint(11NOT NULL auto_increment,
  `
id_juegoint(11NOT NULL default '0',
  `
nombre_clanvarchar(255NOT NULL default '',
  `
id_jugadoresvarchar(255NOT NULL default '',
  `
id_suplentesvarchar(255NOT NULL default '',
  `
ip_registrovarchar(15NOT NULL default '',
  
PRIMARY KEY  (`id`)
ENGINE=MyISAM COMMENT='el primer ID de los jugadores es el capitan del equipo';

-- 
-- 
Estructura de tabla para la tabla `juegos`
-- 

DROP TABLE IF EXISTS `juegos`;
CREATE TABLE `juegos` (
  `
idint(11NOT NULL auto_increment,
  `
nombrevarchar(255NOT NULL default '',
  `
numero_jugadorestinyint(4NOT NULL default '0',
  `
numero_suplentestinyint(4NOT NULL default '0',
  `
inscripcion_abiertaint(11NOT NULL default '1',
  `
tipo_torneoint(11NOT NULL default '1',
  `
cuadrotext NOT NULL,
  
PRIMARY KEY  (`id`)
ENGINE=MyISAM ;

-- --------------------------------------------------------

-- 
-- 
Estructura de tabla para la tabla `jugadores`
-- 

DROP TABLE IF EXISTS `jugadores`;
CREATE TABLE `jugadores` (
  `
idint(11NOT NULL auto_increment,
  `
nickvarchar(255NOT NULL default '',
  `
nombrevarchar(255NOT NULL default '',
  `
dnivarchar(9NOT NULL default '',
  `
localizaciontext NOT NULL,
  `
id_juegoint(11NOT NULL default '0',
  
PRIMARY KEY  (`id`)
ENGINE=MyISAM