Question: MySQL and PHP question Why wont my code work? Code and MySQL tables are below CREATE TABLE cars ( car_ID int AUTO_INCREMENT, car_Name varchar(60), car_reg

MySQL and PHP question

Why wont my code work?

Code and MySQL tables are below

CREATE TABLE cars ( car_ID int AUTO_INCREMENT, car_Name varchar(60), car_reg int, car_Stock int, car_Price float, PRIMARY KEY (car_ID) );

CREATE TABLE figures ( Model_ID varchar(60), Person_ID int NOT NULL, Cost int NOT NULL, figure_Sales_ID INT NOT NULL, Date_Purchased DATE NOT NULL, Sale_Price float, PRIMARY KEY (Model_ID) FOREIGN KEY (figure_Sales_ID) REFERENCES cars(car_ID) );

Best

    best carrs

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!