hello i have table with the column name id,receiver_id and many more now i want to fetch record in which sender_id is current_logged in user and receiver_id contains the current loggend in id.
means receiver_id contains the string of user_id separated with , now i want to check whether user_id there in receiver_id or not
suppose my id is U112 and receiver_id contains string U112,U123,U157 now how can i check
i tried as follow but fails
$selDoc="SELECT * FROM documents WHERE sender_id='U112' OR 'U112' IN (receiver_id) ORDER BY id DESC";