Hide specific rows in MySQL database so they don't show on PHP page

Discussion in 'PHP' started by greenlizard, Nov 22, 2010.

  1. #1
    Hello,

    I'm wondering if anyone has a simple solution to my problem. I have a php page which gathers information from my database and displays it. Every now and then I may need to hide some of the rows that are displayed. For reasons I don't want to get into right now, I don't want to just delete those rows from the database. Each row that is displayed on the PHP page has a unique ID number associated with it. So, I'm looking for code that would say something like "Look for this ID # and if you see it on the page then don't show the MySQL row associated with that ID #."

    Update, solution found:

    This always happens... I post a question then I figure out how to do it. Anyway, all I had to do was simply do an if/else statement and say if the id equals any of these numbers show nothing, else show the data.
     
    Last edited: Nov 22, 2010
    greenlizard, Nov 22, 2010 IP