In a table I have a field that stores users who are allowed to see a post. I have something like 93849038,39480398
where the commas separates the users.
So this is what I am trying to do:
$user = logged in user; example: 93849038.
And this is what my query looks like:
$sql = "SELECT note FROM notes_are WHERE user_allowed = '$user' ORDER
BY id DESC LIMIT 0, 3";
Using a structure like that I am unable to serve the post.