RE: [PHP-ES] Consejo MySQL y UpLoad

From: Date: Thu, 22 May 2003 19:02:20 +0000
Subject: RE: [PHP-ES] Consejo MySQL y UpLoad
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-36510@lists.php.net to get a copy of this message
hola. deberias leer la teoria de normalizacion de bases de datos, pues seguramente con 60 campos mysql se la banque pero ande mucho mas lento que con un buen diseño de tablas. en phpbuilder.com hay un articulo al respecto exitos mac -- ...ThE PhP_KiD. -> -----Mensaje original----- -> De: Rama Gonzalo [mailto:ramagonzalo@yahoo.com.ar] -> Enviado el: Miércoles, 21 de Mayo de 2003 09:14 a.m. -> Para: lista@phpes.com -> Asunto: [PHP-ES] Consejo MySQL y UpLoad -> -> -> Hola a Todos, estoy desarrollado un proyectos en el cual se -> manejaran muchos -> usuarios y cada unos de esos usuarios tendrá la posibilidad de -> personalizar -> (con su diseño a eleccion) cada una de las 16 categorías del sitio y a su -> vez elegir entre 3 templates diferentes para cada categoría: Ejemplo -> -> 10 usuarios registrados, 16 categorías diferentes, 3 templates a elección -> 10*16*3 = 480 páginas personalizadas. -> -> Yo estoy haciendo algo asi: -> -> CREATE TABLE usuarios ( -> id int(25) NOT NULL auto_increment, -> nombre varchar(25) NOT NULL default '', -> apellido varchar(25) NOT NULL default '', -> email varchar(25) NOT NULL default '', -> usuario varchar(25) NOT NULL default '', -> password varchar(255) NOT NULL default '', -> categoría1_temp1 text NOT NULL, -> categoría1_temp2 text NOT NULL, -> categoría1_temp3 text NOT NULL, -> categoría2_temp1 text NOT NULL, -> categoría2_temp2 text NOT NULL, -> categoría2_temp3 text NOT NULL, -> categoría3_temp1 text NOT NULL, -> categoría3_temp2 text NOT NULL, -> categoría3_temp3 text NOT NULL, -> categoría4_temp1 text NOT NULL, -> categoría4_temp2 text NOT NULL, -> categoría4_temp3 text NOT NULL, -> categoría5_temp1 text NOT NULL, -> categoría5_temp2 text NOT NULL, -> categoría5_temp3 text NOT NULL, -> -> ## etc.. hasta la categoría 16. En total unos 60 campos y los -> campos de las -> categorías van a tener un tamaño de un archivo html + o - 6 o 7 kb ## -> -> info text NOT NULL, -> nivel_usuario enum('0','1','2','3') NOT NULL default '0', -> fecha_inscrip datetime NOT NULL default '0000-00-00 00:00:00', -> ultimo_ingreso datetime NOT NULL default '0000-00-00 00:00:00', -> activo enum('0','1') NOT NULL default '0', -> PRIMARY KEY (id) -> ) TYPE=MyISAM COMMENT='Info sobre membresia'; -> -> entonces cuando el usuario decide llamar a una categoría personaliza -> colocar: -> ver.php?id=26&c=2 -> muestra la categoría 2 y selecciona aleatoriamente alguno de los -> 3 templates -> -> yo quisiera saber si es conveniente hacer esta tablas con + de -> 60 campos por -> fila o hacer 16 tablas 1 para cada categoría con el id de cada usuario. -> y también pensé hacer mediante upload, que cada usuario suba sus -> respectivos -> archivos en vez del código fuente. -> ¿que me recomiendan? -> -> Saludos a todos! -> -> -> --------------------------------------------------------------------- -> Archivo On-line: http://www.phpes.com/ -> via news: news://news.phpes.com/ -> Manual PHP en español: http://www.php.net/manual/es/ -> Para dar de baja la suscripción, mande un mensaje a: -> lista-unsubscribe@phpes.com

« previous php.general.es (#36510) next »