
13/12/2010, 07:32
|
| | Fecha de Ingreso: marzo-2008
Mensajes: 1.020
Antigüedad: 17 años Puntos: 21 | |
Respuesta: (Ayuda) subir imagenes a una carpeta y links a base de datos Así esta bien la base de datos:
CREATE TABLE 'posts'
(
'id_post' int(11) auto_increment not null,
'nombre' varchar(50) not null,
'descripcion' text not null,
'url' varchar(50) not null,
primary key(id_post),
)ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE'imgs'
(
'id_img' int not null auto_increment,
'id_posts' int not null,
primary key(id_img),
constraint fk_posts_img foreign key (id_posts) references posts(id_posts)
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |