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

Estoy probando un libro de visitas, pero tengo problemas con la base de datos, tengo esto:

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

--
-- Database: `db_guestbook`
--

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

--
-- Table structure for table `tbl_admin`
--

CREATE TABLE `table_admin` (
`id` int(11) NOT NULL auto_increment,
`username` varchar(50) NOT NULL default '',
`password` varchar(32) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

--
-- Dumping data for table `tbl_admin`
--

INSERT INTO `table_admin` VALUES (1, 'admin', 'admin');

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

--
-- Table structure for table `tbl_guestbook`
--

CREATE TABLE `table_guestbook` (
`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 ;

Cuando creo la base de datos, despues las tablas, cuantas lineas creo? o alguien que me indique paso a paso como seguir porque soy nuevo en esto...
__________________
Learning to fly...