I'm using php and mysql. There are 2 tables called vehicles(vehicl eid,make,model) and images(imageid, vehicleid,image path). From php page I want to add vehicle details to the above 2 tables.
This is my php code
How can I add PK ofvehicles table to the image table.
This is my php code
Code:
$sql = "INSERT INTO vehicles VALUES('','$make','$model','$type','$year','$month','$fuel','$transmission','$color','$price','$displacement','$milage','$other'), images('','','$filePath')";
Comment