Menu
Guys –
I’m doing this:
[code=php]
$query = ‘SELECT * FROM sales WHERE invnum =’.$invnum.’ AND relcid =’.$cid;
$result = mysql_query($query);
$invoice = mysql_fetch_assoc($result);
$query = ‘SELECT * FROM cdata WHERE cid =’.$cnum;
$result = mysql_query($query);
$customer = mysql_fetch_assoc($result);
Now, as you see I’m doing 2 querys to the DB to different tables. I’m pretty damn sure this is what JOIN is all about, but I’m a newbie and horribly scared to even try it!
Anyone want to explain why and how I could/should use a JOIN? be detailed please… my old brain is working slow this morning.
John