Hi all, im sure this will be areally quick solution for you masters out there,
Im trying to create a SELECT query but I am continually getting a parse error ?
$query="SELECT * FROM friends WHERE (user_id = '$_SESSION[SESS_MEMBER_ID]' AND request_id = '$profile_id') OR (request_id = '$_SESSION[SESS_MEMBER_ID]' AND user_id = '$profile_id')";
$result = mysql_query($query);
$row = mysql_num_rows($result);
Hope someone can point me in the right direction as to where I am going wrong