Hi
I'm new at this, and all I know it’s been self taught.
anyway I have a data base called "for sale" and there are 19 tables in it, I had been creating forms for an individual table to insert data in to them which works great, but I have a separate DB which contains 32 tables in it and that means that doing it the way I know, I will need to create 96 separate forms, 3 for each one of my tables'(“insert page, list and details page)
I know there is an easier way, rather than creating so many forms (“by the way I'm using Dreaweaver CS3")
The table names are something like "car_sale" and there are 13 field in it “name, date, price, description, etc." (car_sale_id) is the primary key, int, auto increment.
I'm using PHPmyadmin and I don’t have the slightest idea of how to create a separate table that will insert (hopefully list) the data in a separate selected table,
I figured I can accomplish this with “one to many". Now I know I have to do this in mysql but I don't know how.
Here is my DB for sale
bab_kid_sale
boatsale
book_sale
busi_sale
carsale
collect_sale
comp_sale
elec_sale
furni_sale
garden_sale
houhold_sale
jewel_sale
motorcicles
other_sale
parts_sale
rbsale
sport_sale
tool_sale
Trucksale
and this is the fields in the car sale table
(al tables have the same fieldsin this D😎
CREATE TABLE IF NOT EXISTS carsale (
car_id int(100) NOT NULL auto_increment,
date datetime NOT NULL default '0000-00-00 00:00:00',
title varchar(60) NOT NULL default '',
price varchar(10) default NULL,
location varchar(40) default NULL,
description longtext NOT NULL,
email_add longtext NOT NULL,
contact mediumtext,
image longblob,
reply_to varchar(20) NOT NULL default '',
permition varchar(20) NOT NULL default '',
username varchar(20) NOT NULL default '',
password varchar(20) NOT NULL default '',
PRIMARY KEY (car_id),
UNIQUE KEY title (title)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=20 ;
Can any one please help me?
is there a very detail tutorial out there I can follow, keep in mind I'm not to experienced at this.
I'm kind of dumb.
😃