I was wondering how to create a PHP search form to perform a search function in three tables: phones, manufacturer and operatingsystem. The user will search for a price i.e. typing "350" would search the Price field in the phones table and display all items worth 350 and under or searching for "Android" would search the operatingsystem table and display all phones that run Android.
However, the operatingsystem table has a primary key called OSID but the phones table has a foreign key referencing the OSID. How would I get it to pull up results based on a search for Android when the phones table contains the ID rather than the name of the OS?