This is another thing that has bugged me. how do I select one record from multiple tables in php
I know how I can do this for a whole database but I have never been able to do this for just one record only.
// Example one search for phpbuilder across two tables ///
$result = mysql_query("SELECT * FROM table1, table2 WHERE table1.id=table2.id AND name='phpbuilder'");
Now say I wanted to search for say a record number example 1234, In the past when I have entered the following code I always get an error
// Example two, find id number ////////////////////////////////////
$result = mysql_query("SELECT * FROM table1, table2 WHERE table1.id=table2.id AND id=$id");
Your help would be greatly appreciated.