Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/12/2007, 23:51
Avatar de ezequiel_pethead
ezequiel_pethead
 
Fecha de Ingreso: abril-2007
Mensajes: 124
Antigüedad: 17 años, 1 mes
Puntos: 1
Re: Guestbook y Mysql

Jajaja siempre dije que soy un queso en esto! y se que no me contadicen! jajaja... se me complica al crear la bd y tabla...

Creo una bd llamada: db_guestbook
en ella 3 lineas con id, username y password, le doy los atributos que me dice el ejemplo. Despues van dos tablas mas table_admin y table_guestbook con sus respectivos valores no es cierto?

y esto?
`id` int(11) NOT NULL auto_increment,
`comments` longtext NOT NULL,
`name` varchar(55) NOT NULL default '',
`affiliation` varchar(55) NOT NULL default '',
`title` varchar(55) NOT NULL default '',
`date` date NOT NULL default '0000-00-00',
`top_list` char(3) NOT NULL default 'no',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=22 ;


Cuales sonlas lineas varchar que debo crear en la tabla? solo estas?
`name` varchar(55) NOT NULL default '',
`affiliation` varchar(55) NOT NULL default '',
`title` varchar(55) NOT NULL default '',

__________________
Learning to fly...