I'm pretty new to Mysql and PHP and must admit my brain defers to ms access. I'm trying to update an old ms access app to a web app with a mysql db. Many things are going well and I'm masochistically enjoying the learning curve.
Except for:-
In the msaccess app I can base a form on a query that contains multiple tables and therefore insert, update and delete info in one or more of the tables. msaccess query
SELECT
merlinuc_ucd.tblsuppliers.SupplierID,
merlinuc_ucd.tblsuppliers.PurchasedFrom,
merlinuc_ucd.tblsuppliers.Street,
merlinuc_ucd.tblsuppliers.City,
merlinuc_ucd.tblsuppliers.State,
merlinuc_ucd.tblsuppliers.Zip,
merlinuc_ucd.tblsuppliers.Telephone,
merlinuc_ucd.tblvehicles.ID,
merlinuc_ucd.tblvehicles.LienHolderName,
merlinuc_ucd.tblvehicles.Stock,
merlinuc_ucd.tblvehicles.DateOfPurchase,
merlinuc_ucd.tblvehicles.SupplierID,
merlinuc_ucd.tblvehicles.Year,
merlinuc_ucd.tblvehicles.Make,
merlinuc_ucd.tblvehicles.Model,
merlinuc_ucd.tblvehicles.Mileage,
merlinuc_ucd.tblvehicles.BodyType,
merlinuc_ucd.tblvehicles.Color,
merlinuc_ucd.tblvehicles.Transmission,
merlinuc_ucd.tblvehicles.StateOfOrigin,
merlinuc_ucd.tblvehicles.PreviousOwnersName,
merlinuc_ucd.tblvehicles.PreviousOwnersAddress,
merlinuc_ucd.tblvehicles.PreviousOwnerCity,
merlinuc_ucd.tblvehicles.PreviousOwnersState,
merlinuc_ucd.tblvehicles.PreviousOwnersZip,
merlinuc_ucd.tblvehicles.PreviousOwnersPrincipalUse,
merlinuc_ucd.tblvehicles.PreviousOwnersBodyDamage,
merlinuc_ucd.tblvehicles.PreviousOwnersMechanicalDefects,
merlinuc_ucd.tblvehicles.MSRP,
merlinuc_ucd.tblvehicles.RetailPrice,
merlinuc_ucd.tblvehicles.Notes,
merlinuc_ucd.tblvehicles.PurchasePrice,
merlinuc_ucd.tblvehicles.Transportation,
merlinuc_ucd.tblvehicles.Cleaning,
merlinuc_ucd.tblvehicles.TotalRO,
merlinuc_ucd.tblvehicles.EngineType
FROM
merlinuc_ucd.tblsuppliers
INNER JOIN
merlinuc_ucd.tblvehicles ON merlinuc_ucd.tblsuppliers.SupplierID = merlinuc_ucd.tblvehicles.SupplierID
ORDER BY merlinuc_ucd.tblvehicles.Make;
I've tried this query in MySQL Workbench and it gives me read only results (the query contains the PK from both tables). I've searched on and off for a few months on this but if I'm finding any information (and I'm not sure I am) it's above my head. The workaround I've been using is to base my php forms on one table at a time, and this works OK, but is not my favorite solution as it makes it more confusing for the end user.