Forum Moderators: coopster
I was curious, mainly because I am going to need to implement this.
Is there anyway I can exclude just one result from the database based upon the value of a field, for example i want to exclude the field with an ID of 1 but get all the other fields in the database.
is this possible and can anyone tell me how?
PS: I had thought about doing something like
$query1 = mysql_query("SELECT * FROM table ORDER BY id ASC");
while ($row = mysql_fetch_array($query1,MYSQL_ASSOC))
{
$id = $row['id'];
if ($id == 1)
{
//DO NOT DISPLAY ITEM
}
else
{
//DISPLAY ALL OTHER ITEMS
}
}
Thanks