Hi, all can anyone help me out with working out an sql join.
This is the original SQL i came up with.
$query = ("SELECT* FROM share WHERE allowedUser = '".$_SESSION['ref']."'");
now i need to join another table to it so i can get the firstname and surname from it where owner is the refnumber.
this is the join i came up with but im sure its not right
$query = ("SELECT share.*, user.ref "."FROM share, user "."WHERE share.ref = user.'".$_SESSION['ref']."'");
iof anyone can help that would be great:o