Ver Mensaje Individual
  #19 (permalink)  
Antiguo 16/08/2011, 10:00
Curda
 
Fecha de Ingreso: septiembre-2009
Ubicación: Queretaro
Mensajes: 51
Antigüedad: 14 años, 7 meses
Puntos: 2
Respuesta: Bandeja de Entrada

Cita:
Iniciado por yolanda16568 Ver Mensaje
Un "Ingeniero" solo es, una persona que sabe mucho de una cosa y muy poco de otras Muchas.
EL QUE MUCHO ABARCA POCO APRIETA.

Bueno creo que leyendo todo esto y excelente ayuda le estan ofreciendo, el problema es desde el principio, cuando se va a desarrollar algo primero se tiene que hacer una planeación y su algoritmo, diagrama de flujo, etc... (conocimiento, cultura, aprendizaje) Eso de andar parcheando códigos de ajenos no esta bn ni fácil.

Aquí se hubiera desde el principio ubicado que es lo que se desea y cuanto en base de datos se va a utilizar y cuanto en código.

Planeando algo similar ps yo diria que seria asi mas fácil con estas tablas:

Código MySQL:
Ver original
  1. CREATE TABLE IF NOT EXISTS `fibes_signup` (
  2.   `username` varchar(20) DEFAULT NULL,
  3.   `password` varchar(20) DEFAULT NULL,
  4.   `mailadres` varchar(100) DEFAULT NULL,
  5.   `permail` varchar(250) DEFAULT NULL,
  6.   `actnum` varchar(20) DEFAULT NULL,
  7.   `userlevel` tinyint(4) DEFAULT NULL,
  8.   `usertheme` varchar(25) DEFAULT NULL,
  9.   `signupdate` varchar(16) DEFAULT NULL,
  10.   `lastlogin` varchar(16) DEFAULT NULL,
  11.   `lastloginfail` bigint(20) DEFAULT NULL,
  12.   `numloginfail` tinyint(4) DEFAULT NULL


Código MySQL:
Ver original
  1. CREATE TABLE IF NOT EXISTS `fibes_inbox` (
  2.   `messageID` smallint(6) NOT NULL AUTO_INCREMENT,
  3.   `adres` varchar(20) NOT NULL DEFAULT '',
  4.   `sender` varchar(20) NOT NULL DEFAULT '',
  5.   `DateRecieved` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  6.   `title` varchar(30) NOT NULL DEFAULT '',
  7.   `message` text NOT NULL,
  8.   `isRead` tinyint(4) NOT NULL DEFAULT '0',
  9.   `file1` int(11) DEFAULT NULL,
  10.   `file2` int(11) DEFAULT NULL,
  11.   `file3` int(11) DEFAULT NULL,
  12.   PRIMARY KEY (`messageID`)

Código MySQL:
Ver original
  1. CREATE TABLE IF NOT EXISTS `fibes_inbox_upload` (
  2.   `id` int(11) NOT NULL AUTO_INCREMENT,
  3.   `name` varchar(100) NOT NULL,
  4.   `type` varchar(30) NOT NULL,
  5.   `size` int(11) NOT NULL,
  6.   `content` mediumblob NOT NULL,
  7.   PRIMARY KEY (`id`)

Código MySQL:
Ver original
  1. CREATE TABLE IF NOT EXISTS `fibes_outbox` (
  2.   `messageID` smallint(6) NOT NULL AUTO_INCREMENT,
  3.   `adres` varchar(20) NOT NULL DEFAULT '',
  4.   `sender` varchar(20) NOT NULL DEFAULT '',
  5.   `DateSend` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  6.   `title` varchar(30) NOT NULL DEFAULT '',
  7.   `message` text NOT NULL,
  8.   PRIMARY KEY (`messageID`)

Código MySQL:
Ver original
  1. CREATE TABLE IF NOT EXISTS `fibes_oldmessages` (
  2.   `messageID` smallint(6) NOT NULL AUTO_INCREMENT,
  3.   `adres` varchar(20) NOT NULL DEFAULT '',
  4.   `sender` varchar(20) NOT NULL DEFAULT '',
  5.   `DateRecieved` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  6.   `title` varchar(30) NOT NULL DEFAULT '',
  7.   `message` text NOT NULL,
  8.   `isRead` tinyint(4) NOT NULL DEFAULT '0',
  9.   `file1` int(11) DEFAULT NULL,
  10.   `file2` int(11) DEFAULT NULL,
  11.   `file3` int(11) DEFAULT NULL,
  12.   PRIMARY KEY (`messageID`)