Only showing if? -PHP?

Liam

New member
Is there any statement where the content below will only show IF a number in my table (database) =1, so if it was 0 nothing would show.

For instance;
the table has two areas in it, id, and, switch,
now is there a way to search all id's and only when switch has 1 in it, the content on the page will show up, so lets say theres two id and the first one has a switch =0 and the second =1, so ?id=1 wont show anything, but ?id=2 will show,
I hope I havent confused you that much?;S


Please Help, Much Appreciated!
 
Back
Top