I am pulling some data from table in a MySQL database. Inside this table is a column called "hidden", by default it is set to 0, but when an item needs to be hidden, it will be set to 1. So I need a code that I can use that will hide all rows if the "hidden" column is set to 1.
Lets say my code is something simple like this:
<?php
$result = mysql_query("SELECT * FROM clients ORDER BY name")
or die(mysql_error());
while($row = mysql_fetch_array( $result )) {
echo $row['name'];
}
?>
Is there a simple code I can add to it?