Hiding row from loop


I have a table

post(post_id, user_id, post)

this query is outputted in a loop in php

How would I go about excluding certain rows from the loop when a user clicks hide on the row output?

Are you looking for a javascript solution, or a php/mysql solution?

How permanent will this “hide” feature be for hiding rows? Will it hide the row forever, until it’s unhidden, until the page is refreshed, or until the user logs out?


Until its unhidden.