Can I write a query in MYSQL (eventually for PHP + MySQL) such that I can check across multiple tables in a sort of array?
For example Suppose I have tables client, car, rate Each table has an ID.
In client are rows ... ID, Name, address In car are rows ... ID, Make, Model, Year, License plate number In rate are rows ... ID, 1-day, 2-day, 3-day
would the following work?:
SELECT name, make, model, license plate number, 1-day FROM client, car, rate WHERE make = ford
or in PHP
$q = "SELECT name, make, model, license plate number, 1-day FROM client, car, rate WHERE make = ford";
would this be correct syntax?