hi
i have two different table,i want to select the name and id(primary key) from the first table..based on the id..i want to select the rest of the data in the second table...
the below query is showing error,plz do tell me the bug.
$query="select id,name from table1 where id='$id' IN(select spid,age,address from table2 where age1= '$age')";
thanks