I have 2 mySQL tables data1 and data2.
I have a query string for showing me the the records in data2 where the "amount" field is greater than 10.
example:
$sql = mysql_query("SELECT * FROM data2 WHERE amount > 10");
Both tables have a field called "itemnumber" but data1 holds a "description" field.
My question is how do I take the records from my first query ($sql) from data2 and bind them using the itemnumbers to data1 and fetch their description from data1?
Anybody have any ideas?